mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
8f7f2fed85
## Fix handling of intercept route segments in HMR ### What? - Made the routes in `resolve-routes.ts` get lazily initialized, and only recalculated in development mode to preserve performance - Added a test case for HMR with intercept routes ### Why? This change ensures that intercept route segments (and any other changed elements of routes), will be recalculated correctly during the development proecess. Fixes #PACK-5246
8 lines
131 B
JavaScript
8 lines
131 B
JavaScript
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|