mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Fix module reference handling in app_structure.rs creating duplicated layouts ### What? Fixed a bug in the `check_and_update_module_references` function by making the code always overrides the `not-found`, `unauthorized`, etc files at the top level group route layer. ### Why? The previous implementation had a bug that when a directory was setup like the added test case where the layouts from a lower directory would render when only the layouts at the level of the not-found page should have rendered. ### How? - Added the ability to force overriding of the `module` when running `check_and_update_module_references` - Split the logic between global and layer-specific modules Fixes #PACK-5081
10 lines
161 B
React
10 lines
161 B
React
export default function Layout({ children }) {
|
|
return (
|
|
<>
|
|
<h1>Default Layout</h1>
|
|
{children}
|
|
<h1>Default Footer Test</h1>
|
|
</>
|
|
)
|
|
}
|