T
TanStack5mo ago
stormy-gold

Adding defaultSsr can't override it

Hi, I'm migrating mi app from tanstack router => tanstack start. I can't migrate all of them at once, this is just a POC for us. I've added defaultSsr : false and then in the poc page I've added ssr : true but it doesn't make the page SSR.
No description
No description
4 Replies
stormy-gold
stormy-goldOP5mo ago
No description
No description
stormy-gold
stormy-goldOP5mo ago
Is my setup wrong?
xenial-black
xenial-black5mo ago
thats seems correct but its a hierarcy so if you have defaultssr: false i don't think anything can be ssr true but i could be wrong
stormy-gold
stormy-goldOP5mo ago
Yeap. It looks like that, uhmm maybe I'll have to use ClientOnly in all the routes and just do ssr for 1 page Thanks for confirming. So I don't really need component: RootComponent at least I migrate all my routes to SSR

Did you find this page helpful?