Replies: 1 comment
-
Actually, this isn't a JavaScript file with separate TypeScript type definitions, the file is written in TypeScript and the method indeed takes no arguments: router/packages/react-router/src/router.ts Line 3059 in b16c2c1 The I'm thinking it might be possible to manually put that data in place before calling |
Beta Was this translation helpful? Give feedback.
-
Hi, I am using tanstack router in a project which contains multiple apps so I require custom SSR with tanstack router so that I can just plug it inside the existing architecture. Is it possible to achieve SSR with tanstack router without having to use the whole Start framework?
I tried the following code:
server.tsx
client.tsx
router.ts
The server seems to be working fine but I get client side hydration error:
Error: Hydration failed because the initial UI does not match what was rendered on the server.
Any idea on how SSR can be implemented without the Start framework?
I even tried using the routers' hydrate and dehydrate methods but with no luck.
offtopic: The typescript typings for hydrate method seems to be wrong. As per typing the
hydrate
method doesn't accept any parameter but that is obviously incorrect.Beta Was this translation helpful? Give feedback.
All reactions