Dane Poyzer
Migrating pages router to app router
Presumably here? https://tanstack.com/query/latest/docs/framework/react/guides/advanced-ssr#streaming-with-server-components
50 replies
Migrating pages router to app router
Thanks for this thread, its been helpful. I've been struggling with hydration errors when using a void prefetch with useQuery. These errors don't appear when using a useSuspenseQuery and I'm conceptually struggling to get my head around it. Switching the prefetch to an await appears to resolve the useQuery hydration errors, but now this thread makes me think I've disabled the streaming behaviour. Do you have links to the tanstack docs you were referencing around the void/await behaviour so I can try and understand better?
50 replies