mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This API has experimental modes for build validation but the dev validation is going to be stable in the next release.
21 lines
705 B
TypeScript
21 lines
705 B
TypeScript
import { type ReactNode } from 'react'
|
|
|
|
// Validation level is 'manual-warning' (set in next.config.ts).
|
|
//
|
|
// No Suspense around `{children}`, so a violating bare page (runtime data
|
|
// at the top, no Suspense) leaves the static shell empty.
|
|
//
|
|
// Crucially, this layout does NOT export `instant = false`. If it
|
|
// did, `isPageAllowedToBlock` would mark every route under this layout as
|
|
// blocking-allowed, which suppresses the static-shell empty-shell error.
|
|
// We want that error to surface here as the contrast against the
|
|
// `with-root-suspense/` tree.
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|