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

code-gen(react-query): make the generated hooks compatible with @tanstack/react-query@v5 #2644

Closed
dirkdev98 opened this issue Jun 8, 2023 · 0 comments
Labels
prio 1 Defines the highest prio issues

Comments

@dirkdev98
Copy link
Member

https://tanstack.com/query/v5/docs/react/guides/migrating-to-v5

Seems like the only change for us is to use the object format everywhere ref

- useQuery(key, fn, options)
+ useQuery({ queryKey, queryFn, ...options })

This seems to be compatible with @tanstack/react-query@v4 so we can do this without it being a breaking change.

@dirkdev98 dirkdev98 added the prio 1 Defines the highest prio issues label Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio 1 Defines the highest prio issues
Projects
None yet
Development

No branches or pull requests

1 participant