How to debug error "Expected to find a dehydrated data on window.__TSR_SSR__.dehydrated"
I am seeing this error in my SSR setup with Vite. I've been trying to follow the directions at https://tanstack.com/router/latest/docs/framework/react/guide/ssr#ssr but can't seem to fix this error.
SSR | TanStack Router React Docs
Server Side Rendering (SSR) is the process of rendering a component on the server and sending the HTML markup to the client. The client then hydrates the markup into a fully interactive component. The...
5 Replies
xenial-blackOP•6mo ago
It seems I am missing this https://github.com/TanStack/router/blob/main/packages/start-server-core/src/ssr-server.ts#L104-L121
GitHub
router/packages/start-server-core/src/ssr-server.ts at main · TanS...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router
xenial-blackOP•6mo ago
It says nothing about that in the docs
robust-apricot•6mo ago
Could you please post a reproduction?
robust-apricot•6mo ago
Here's the official example - https://tanstack.com/router/latest/docs/framework/react/examples/basic-ssr-streaming-file-based?path=examples%2Freact%2Fbasic-ssr-streaming-file-based%2Fsrc%2Fentry-server.tsx
React TanStack Router Basic Ssr Streaming File Based Example | TanS...
An example showing how to implement Basic Ssr Streaming File Based in React using TanStack Router.
robust-apricot•6mo ago
It could just be that the guide is a bit outdated