Tanstack Start, React Query, deferred loading, prefetch, streaming
I have been trying to achieve deferred loading for hours now and I cannot make it work.
Basically I have /dashboard/* routes that are only accessible to authenticated users.
So in my dashboard/route.tsx layout, I prefetch in the loader without awaiting and useSuspenseQuery in the layout.
Even this simple setup doesn't work. When I look at the network tab I can see a client call the /me trpc
What I am trying to achieve is showing a loading while the query resolves.
The documentation mention NextJS but not Tanstack Start.
For example, on some NextJS documentation they say you need shouldDehydrateQuery.
Do I need it for Tanstack Start ?
Basically I have /dashboard/* routes that are only accessible to authenticated users.
So in my dashboard/route.tsx layout, I prefetch in the loader without awaiting and useSuspenseQuery in the layout.
Even this simple setup doesn't work. When I look at the network tab I can see a client call the /me trpc
What I am trying to achieve is showing a loading while the query resolves.
The documentation mention NextJS but not Tanstack Start.
For example, on some NextJS documentation they say you need shouldDehydrateQuery.
Do I need it for Tanstack Start ?
