Replies: 1 comment
|
The conflict isn't coming from the Pathless layout routes aren't standalone pages; they exist purely to wrap child routes. As soon as you put actual routes inside each group, the collision disappears and each group gets its own layout, which is exactly the Next.js route-group behavior you're after:
So every file inside Two things worth noting:
Docs: Pathless Layout Routes and File Naming Conventions. |
Uh oh!
There was an error while loading. Please reload this page.
I have 2 pathless routes:
_appand_admin. Both has<Outlet />so they serve as layouts which is at the top-level ofroutes/dir so when i generate the routes they conflict:I would like different routes for each of those groups so that i can have different layouts for all of the routes on each group similar to in
nextjsAll reactions