TanStackT
TanStackโ€ข14mo agoโ€ข
7 replies
skinny-azure

Apply _pathless.tsx layout to index.tsx?

Hi there ๐Ÿ‘‹ I am wanting my index route to situate without a nested layout. I use a _main.tsx layout to wrap a number of pages and these pages are split into two sub layouts which process auth status, _protected.tsx and _unprotected.tsx. I want the index of my route tree (
/
) to situate within the _protected.tsx layout. How can I accomplish this? Prefixing index.tsx with _protected.index.tsx does not seem to work. Any help is appreciated!
image.png
Was this page helpful?