You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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