Shared Layouts Across Multi-Zone Apps #86475
Replies: 1 comment
-
|
There is currently no official support in Next.js for a true “shell + multiple zones” architecture where the shell provides the global layout and each zone renders only the inner page content with seamless client-side navigation. Multi-zone apps in Next.js are still treated as separate applications, and moving between zones triggers a full page navigation. Each zone must define its own layout because layouts cannot currently be “inherited” or streamed from another zone. However, there are a few recommended patterns depending on the architecture you want:
Conclusion
Hope this helps clarify the current limitations and available approaches. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In a multi-zone Next.js setup, each zone needs its own layout (header, footer, sidebar), causing duplication. I’d like to have a single “shell” app that provides the global UI, while each zone only renders into a main content area—without triggering a full page reload when navigating between zones.
Essentially:
• One shared layout (header/footer/sidebar) defined once in a shell app.
• Each zone renders only the inner page content.
• Navigation between zones should feel like client-side routing, not a full refresh.
Is there an official or recommended approach to achieve this in multi-zone setups?
Beta Was this translation helpful? Give feedback.
All reactions