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

Missing queryClient parameter #1618

Open
briangregoryholmes opened this issue Mar 26, 2025 · 0 comments
Open

Missing queryClient parameter #1618

briangregoryholmes opened this issue Mar 26, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@briangregoryholmes
Copy link

briangregoryholmes commented Mar 26, 2025

What is the problem this feature would solve?

The optional queryClient parameter is missing in generated hooks. In all versions of TanStack v5, the query hook takes two parameters:QueryOptions and QueryClient.

https://tanstack.com/query/v5/docs/framework/vue/reference/useQuery
https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
https://tanstack.com/query/v5/docs/framework/react/reference/useQuery

This is critical when using the generated hooks outside of component contexts and, in my opinion, should be included in the generated code by default.

External documents/projects?

No response

What is the feature you are proposing to solve the problem?

No response

What alternatives have you considered?

No response

@briangregoryholmes briangregoryholmes added the enhancement New feature or request label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant