Child route not loading correctly?
For some reason when I set my index route to something other than
/ It will load the route url, but it will not load the proper component. The index route loads fine but any time I try and use link to navigate to a new route, the index route stays loaded.
In this code, when the site first loads, main gets loaded, then when I click on about on the navbar component main stays loaded and the outlet does not load the about component.
Any ideas what might be going on here?2 Replies
foreign-sapphire•3y ago
I think this might be this issue: https://github.com/TanStack/router/issues/528
GitHub
Routes that share parts of the path are not matched · Issue #528 · ...
Describe the bug When creating multiple routes that have some part of the path in common and have the same parent, some routes are not matched Example: const indexRoute = new Route({ getParentRoute...
like-goldOP•3y ago
Yep! That's the same issue that is showing in mine. Thanks for sharing the issue. I wasn't sure if it was a bug or if I was doing something wrong.