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
Thanks for filing. I’m not 100% sure what’s going on, but I debugged it a bit and the gist is that the initialPromise is passed as undefined to query.fetch here:
When inspecting the promise we get from the server, it’s there, but initialPromise is still undefined:
@juliusmarminge does this have something to do with .then(deserializeData) ? Before that step, the promise seems to still be there. deserializeData is just our default one:
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: