TanStackT
TanStack2y ago
4 replies
skinny-azure

NextJS, SSR Prefetch/Hydration not working

I am having a problem where prefetch/hydration does not work.

I am prefetching the query on the Server (api call. If I log the resolved data on the server I can see it is there).

Then I call the same query in a client component and isLoading is first set to true with no data. Indicating the cache was empty

What am I doing wrong? I don't see it
image.png
image.png
image.png
Was this page helpful?