Nested routes with folders in file based routing
I'm using tanstack router for a current project. I've got an issue. Given the sample pseudo routing structure:
I'm currently using this structure and when I'm on /members and click on orders instead of orders appearing inside the index.tsx, they are a separate route.
I've tried adding .route.tsx at the end and it didnt work.
Am I missing something?
2 Replies
variable-lime•2y ago
index.tsx is a distinct route.
Your <Outlet> should probably go in /_authenticated/member.tsx.
Its hierachy is something like this.
It can also, be represented as
complex-tealOP•2y ago
Thanks for the help!