Is there a way with app dir layouts to do something like "island" based pages?

I am making a dashboard where various sections are shown depending on the url. Is there a way I can maintain the wrapper around the "page" without it completely reloading?
5 Replies
Josh
Josh2y ago
i think your best bet is making each "island" a component, and then importing them accordingly on the page. If you want it to be super dynamic, then you would just use a catchall route, and display them based off of the paramaters to the dynamic route
Liam
LiamOP2y ago
Yeah, the only thing then is that I have to manually modify the router. I could have sworn there was a way to do this with the app router layouts RFC
Josh
Josh2y ago
Wym manually modify the router
Liam
LiamOP2y ago
using router.push() shallow and having to have a thing that processes when user interaction vs directly dropping in from the url changes the UI
Josh
Josh2y ago
Why not use <Link>?
Want results from more Discord servers?
Add your server