Feature Request :: Nested URLs without Nesting Layouts
See original GitHub issueHaving support for convention-based nested URLs while being able to escape from the default layout convention in a given folder would be awesome. 😄
As per the remix.run docs: https://remix.run/docs/en/v1/guides/routing#nested-urls-without-nesting-layouts
So, if we want a flat UI hierarchy, we create a flat filename–we use “.” to create segments instead of folders. This defines URL nesting without creating component nesting.
└── app
├── root.jsx
└── routes
├── sales
│ ├── invoices
│ │ └── $invoiceId.jsx
│ └── invoices.jsx
├── sales.invoices.$invoiceId.edit.jsx 👈 not nested
└── sales.jsx
Just for absolute clarity, if the url is “example.com/sales/invoices/2000/edit”, we’ll get this UI hierarchy that matches the file system hierarchy:
<Root>
<EditInvoice />
</Root>
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Remix nested URLs without the layout nesting - Daily Dev Tips
Yesterday we learned how to create pathless layout routes, which means we can share a layout between routes without sharing the URL routes....
Read more >Feature request: Reset layout inheritance in nested routes ...
I would like an API that allows me as developer to get more flexibility when needed but has the layout inheritance by default....
Read more >Basic Features: Layouts - Next.js
This new directory has support for layouts, nested routes, and uses Server Components by default. Inside app/ , you can fetch data for...
Read more >Remix Routes Demystified - Smashing Magazine
There is a chance that developers will need to create layouts without nesting routes. Take for example the /about page and the /...
Read more >Performance and view hierarchies - Android Developers
Android Layouts allow you to nest UI objects in the view hierarchy. ... is when hierarchies of View objects are nested within one...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for the examples! ❤️
Yup, that’s supported with multiple params as well, thanks to @bzbetty. Here’s an example: