How can I use NextJS’ nested layout feature with Plasmic?
I have the following folder structure:
src/
app/
map/
layout.tsx (Using a Component created by Plasmic as Layout for all nested routes. It basically has a Sidebar and a Content div with a Map in it)
[viewport]/
page.tsx (Created by Plasmic, it should use the above layout, so that I'm only re-rendering inner Components on navigation, my Map should not re-mount on navigation)
I can now make all my presentational components in Plasmic and just use them in my code project, but I loose the ability to view my Pages in Plasmic Studio? I have the impression, that the plasmic-host page renders the Page-Components exactly from the “Plasmic[PageNameHere]” Components and does not access the nested URL, thus not triggering NextJS to do the nesting and therefore I’ll not see the things in Plasmic Studio, which I would normally see on my Page? Is there a way around this? Can I use the Canvas Component somehow?