Best practices for nested settings route #9725
-
Imagine a SPA with a settings sheet similar to shadcdn's https://ui.shadcn.com/docs/components/sheet but as a nested route under Now my current solution (which you can see in action here if you press the sliders icon in the sidebar) basically moved my entire page from My DX oriented mind would love a way to keep the root route super basic with just the sidebar and outlet and still have the Another way I could think of was creating a layout route What are the usual best practices for UI like this? Or am I approaching this wrong entirely and should I just not use nested routes for something like this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Ok thinking about it from a different angle about a project with more than just the root route, having a nested route for something like this wouldn't even work. I guess I have my answer there why something like this shouldn't be a nested route. |
Beta Was this translation helpful? Give feedback.
I also fixed the issue where the settings panel didn't render properly if you refreshed on the
/about/settings
route. It was a hydration issue that was fixed using the RC versions ofreact
andreact-dom
(v19).