TanStackT
TanStack2y ago
3 replies
uncertain-scarlet

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:
/_authenticated - folder + a separate layout 
  /member - this needs to have a "layout" with 4 nested routes
      appearance.tsx
      settings.tsx
      profile.tsx
      orders.tsx
      index.tsx - This is the main view with an <Outlet /> inside it

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?
Was this page helpful?