Open
Description
Which project does this relate to?
Router
Describe the bug
When trying to use the layout routing file, the routes created are correct but when trying to open one of the route using component, it fails to load or when trying to refresh the page which is already on the failed route.
Your Example Website or App
https://stackblitz.com/edit/tanstack-invariant-bug
Steps to Reproduce the Bug or Issue
- Click on About or Dashboard link
- Error is thrown
Expected behavior
I should be able to properly add a layout routing file and the nested components should work correctly.
For example below routes:
app/home
app/about
app/dashboard
I have route.tsx (default pattern for layout file) file inside app folder which contains the nav bar, then /home, /about and /dashboard should have the nav bar present in them.
Screenshots or Videos
Platform
"@tanstack/react-router": "^1.116.0"
"@tanstack/router-plugin": "^1.116.1"
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels