mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +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
597 B
TypeScript
15 lines
597 B
TypeScript
import { type ReactNode } from 'react'
|
|
|
|
// This intermediate layout exports `instant = false`. The walker
|
|
// treats `false` as a per-segment no-op — it doesn't suppress validation
|
|
// of descendant page/default segments. So the bare page under this layout
|
|
// should still be implicitly validated under 'warning'.
|
|
//
|
|
// The `false` here only "shields" this layout's own load from being
|
|
// considered blocking; it does not act as a global opt-out for the route.
|
|
export const instant = false
|
|
|
|
export default function LayeredLayout({ children }: { children: ReactNode }) {
|
|
return <>{children}</>
|
|
}
|