T
TanStack2mo ago
fair-rose

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
fair-rose
fair-roseOP2mo ago
No description
No description
fair-rose
fair-roseOP2mo ago
Is my setup wrong?
like-gold
like-gold2mo 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
fair-rose
fair-roseOP2mo 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?