Open dominikabieder opened 5 months ago
With @tanstack/react-query v5, you need to specify your version in your codegen config: -
config: {
reactQueryVersion: 5
}
With @tanstack/react-query v5, you need to specify your version in your codegen config: -
config: { reactQueryVersion: 5 }
I have that :( fixed the formatting so it's more visible
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