mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Fix not-found page inheritance in nested layouts ### What? This PR fixes an issue where custom not-found pages weren't properly inherited in nested layouts. Previously, when a page within a route group threw a `notFound()` error, it wouldn't correctly use the group's custom not-found page if there was also a custom layout. ### How? - Added a new `check_and_update_module_references` helper function to manage module inheritance - Implemented proper parent-child relationship for special pages (not-found, forbidden, unauthorized, global-error) - Added test cases for not-found pages with nested layouts and route groups - Ensured custom not-found pages are properly rendered when notFound() is thrown from pages in nested layouts Fixes #PACK-4496
9 lines
136 B
JavaScript
9 lines
136 B
JavaScript
export default function RootLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<head />
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|