TanStackT
TanStack11mo ago
7 replies
standard-azure

Nested layout for routes

Hey, everybody!

I am trying to create the following authentication route structure and I need to add a generic layout that wraps the sign-in and sign-up routes. I have created a pathless route _layout.tsx, but it doesn't seem to work. I've read several threads about this, but haven't figured out how to properly define this layout.

I'd be glad if anyone can help. Thanks!
routes/
├── auth/
│   ├── sign-in/
│   │   └── index.tsx
│   ├── sidn-up/
│   │   └── index.tsx
│   └── _layout.tsx <- not working.
├── __root.tsx
└── index.tsx
Was this page helpful?