You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
const currentUserQuery = useCurrentUserQuery({ enabled: !isLoggingIn });
TS2322: Type boolean is not assignable to type never
Your Example Website or App
can't share
Steps to Reproduce the Bug or Issue
upgrade react query
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
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: