-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
issues with generated file after react query v5 migration #9824
Comments
With @tanstack/react-query v5, you need to specify your version in your codegen config: -
|
I have that :( fixed the formatting so it's more visible |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
I'm having several issues after migrating tanstack query to v5. Is there anything I might have missed in the codegen.ts? how can I fix the warnings in generated.ts.
how do I pass options to the query? the app doesn't want to start due to bad argument type
Your Example Website or App
can't share
Steps to Reproduce the Bug or Issue
Expected behavior
no warnings in generated.ts and no issues with useQuery or useMutation hooks
Screenshots or Videos
const currentUserQuery = useCurrentUserQuery({ enabled: !isLoggingIn });
TS2322: Type boolean is not assignable to type never
Platform
graphql
version: 16.8.1@graphql-codegen/*
version(s): [e.g. 2.6.2]Codegen Config File
Additional context
No response
The text was updated successfully, but these errors were encountered: