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
When redirecting from a nested layout route (routes/nested/_layout.foo.tsx), the route that is redirected to does not render. The issue does not occur when redirecting from an un-nested layout route (routes/_layout.foo.tsx). It also appears to have something to do with the code splitting as the problem does not occur when none of the routes are lazy loaded. In the reproduction example, autoCodeSplitting is enabled. When autoCodeSplitting is disabled, I'm not sure which routes need to be lazy loaded for the problem to occur.
Which project does this relate to?
Router
Describe the bug
When redirecting from a nested layout route (routes/nested/_layout.foo.tsx), the route that is redirected to does not render. The issue does not occur when redirecting from an un-nested layout route (routes/_layout.foo.tsx). It also appears to have something to do with the code splitting as the problem does not occur when none of the routes are lazy loaded. In the reproduction example, autoCodeSplitting is enabled. When autoCodeSplitting is disabled, I'm not sure which routes need to be lazy loaded for the problem to occur.
Your Example Website or App
https://stackblitz.com/edit/tanstack-router-hdebcw?file=src%2Froutes%2Fnested%2F_layout.foo.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
I expected that redirects will always render the resulting route no matter what level of nesting or layouts
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: