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.
15 lines
672 B
TypeScript
15 lines
672 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
// Outer layout: configured for instant validation, no errors. Renders
|
|
// children cleanly so this depth's iteration of the validation loop
|
|
// validates without producing errors or fallback. Used together with
|
|
// the deeper inner page config to exercise the multi-depth deferral
|
|
// path: the inner depth defers a missing-boundary fallback, this
|
|
// (shallower) depth has nothing to report, and the deferred fallback
|
|
// surfaces only after the loop has exhausted every depth.
|
|
export const instant = { level: 'experimental-error' }
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return <main>{children}</main>
|
|
}
|