Replies: 1 comment 1 reply
-
In Tanstack router, routes by default nest, so doing
will cause You can also use
You can either use the pattern in the first codeblock from this answer, or, you can combine them like:
You can also get pathless routes into the equation to have actual layouts that do not affect the URL path, for example:
If the default nesting behavior ever gives you headaches, there is also
which will not cause |
Beta Was this translation helpful? Give feedback.
1 reply
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, I’m exploring route grouping with TanStack Router and I’m wondering about the best practice for applying a layout to a group of routes.

Beta Was this translation helpful? Give feedback.
All reactions