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
I caught this when wondering why ssr:false would simply not work. After a lot of comparision to the start-basic example i discovered that if the Route Component is exported the page will be server-side rendered even if ssr:false or defaultSsr:false is set.
Similar to this ssr:false also does not work for any defined errorComponent and notFoundComponent which leads to layout shifts in my app as the component is a layout that adds additional UI:
Which project does this relate to?
Start
Describe the bug
I caught this when wondering why
ssr:false
would simply not work. After a lot of comparision to thestart-basic
example i discovered that if the Route Component is exported the page will be server-side rendered even ifssr:false
ordefaultSsr:false
is set.Your Example Website or App
https://stackblitz.com/edit/tanstack-router-wsyr4gwp?file=app%2Froutes%2F_layout.tsx
Steps to Reproduce the Bug or Issue
LayoutComponent
is not exported. "I am a layout" is missing from the server response. This works as expectedLayoutComponent
in_layout.tsx
. Notice that the "I am a layout" is now present in the server response.Expected behavior
No matter if the Route Component is exported or not,
ssr:false
should work. If this is not possible, a warning in the docs would be great.Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: