-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
server error with nextjs , and hydration in v5 #8528
Comments
Thanks for filing. I’m not 100% sure what’s going on, but I debugged it a bit and the gist is that the query/packages/query-core/src/hydration.ts Lines 215 to 219 in bd3296b
That leads to us invoking the query/packages/query-core/src/retryer.ts Line 153 in 18953be
When inspecting the @juliusmarminge does this have something to do with query/packages/query-core/src/hydration.ts Lines 17 to 19 in bd3296b
|
Regarding this issue, could this be the reason that the data are not fetched in the server side? |
Actually i follow that issue and reached here , i amazed why that happens. That is good question too |
Describe the bug
server error with nextjs , and hydration in v5
Your minimal, reproducible example
https://stackblitz.com/github/tanstack/query/tree/main/examples/react/nextjs-app-prefetching?embed=1&theme=light&preset=node&file=src/index.tsx
Steps to reproduce
Expected behavior
as a user , i don't except this error happen , and it make some conflicts with building and compiling for production
How often does this bug happen?
Every time
Screenshots or Videos
Platform
Tanstack Query adapter
react-query
TanStack Query version
"^5.64.0" ,
TypeScript version
"5.7.2"
Additional context
No response
The text was updated successfully, but these errors were encountered: