We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When a query is disabled, calling suspense() in SSR context causes hang.
suspense()
https://stackblitz.com/edit/tanstack-query-5ck7qt?file=app.vue
const fetcher = async () => await fetch('https://jsonplaceholder.typicode.com/posts').then((response) => response.json() ); const { data, suspense } = useQuery({ queryKey: ['test'], queryFn: fetcher, enabled: false, }); onServerPrefetch(async () => { await suspense(); // <-- Causes hang });
When query is disabled, I expect suspense() not to hang the application
Every time
No response
Universal
vue-query
5.61.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When a query is disabled, calling
suspense()
in SSR context causes hang.Your minimal, reproducible example
https://stackblitz.com/edit/tanstack-query-5ck7qt?file=app.vue
Steps to reproduce
Expected behavior
When query is disabled, I expect
suspense()
not to hang the applicationHow often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Universal
Tanstack Query adapter
vue-query
TanStack Query version
5.61.3
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: