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
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
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
Wym manually modify the router
using
router.push()
shallow and having to have a thing that processes when user interaction vs directly dropping in from the url changes the UIWhy not use
<Link>
?