Is there a way to persist a layout for a given set of routes?
September 26, 2018 at 11:04amThe Next.js community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →
Is there a way to persist a layout for a given set of routes?
September 26, 2018 at 11:04amI see that you can modify _app.js to persist a layout between pages. But lets say I have a /home, /about, and /login page that I don't want a persisted layout. But then I have /dashboard /dashboard/clients /dashboard/statistics where I want a dashboard layout to persist. Is there a way to achieve this? Thanks :)
August 21, 2019 at 2:43pm
So this works.. except now I have a server/client mismatch with Styled components.
could this be a timing issue?
November 6, 2019 at 10:39am
The above solutions work, how could i do something similar to what proposed but for .mdx files?
Using a static true/false works, however is it possible to implement something like Page.Layout = Layout for .mdx files?