Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contextType is added as import #259

Open
mrtnbroder opened this issue Sep 7, 2021 · 1 comment
Open

contextType is added as import #259

mrtnbroder opened this issue Sep 7, 2021 · 1 comment

Comments

@mrtnbroder
Copy link

mrtnbroder commented Sep 7, 2021

Latest update generated the following line in my output file:

import { getApolloClient , any} from '~hooks/useApollo';

because the contextType is added as an import (which is wrong).

setting contextType: "" fixes that line but generates wrong syntax for other lines:

- (options: Omit<Apollo.QueryOptions<Types.CalculatorQueryVariables>, 'query'>, ctx?: any)
+ (options: Omit<Apollo.QueryOptions<Types.CalculatorQueryVariables>, 'query'>, ctx?: )
@martijndeh
Copy link
Contributor

I made a change to address this earlier. #258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants