Need help with ignoring _layout for selective child routes #5042
Unanswered
nirav-blitzm
asked this question in
Q&A
Replies: 1 comment
-
like this https://stackblitz.com/edit/tanstack-router-19eqhblw |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, need some help.
Could you please provide some suggestions on how to avoid applying
_layout
to selective child routes?I have created a
_layout.tsx
file with the intention of applying a common layout structure to child routes and have wrapped_layout
to the route folder as shown in my route structure below.I am trying to prevent the layout from being applied to certain child routes under the
_layout.dashboard
directory. I attempted to add a_
suffix to theuser
andproduct
directories, hoping the router would bypass thelayout.tsx
from the parent, but this approach was unsuccessful.Sandbox - https://stackblitz.com/edit/tanstack-router-g3lghxc1?file=src%2Froutes%2F__root.tsx
Appreciate your help.
Beta Was this translation helpful? Give feedback.
All reactions