Files
Josh StoryandGitHub e9df6ed9dc Add instant validation tests for parallel slot config attribution (#91656)
Tests that unstable_instant configs placed at different positions across
a parallel route fork correctly attribute errors to the blocking
segment, with the cause pointing to the config that requires instant
behavior. Includes both invalid cases that produce errors and valid
cases that pass cleanly. Does not yet detect incompatible configurations
like false on one slot alongside an instant config on a sibling — that
will be handled in a followup.
2026-03-19 13:33:00 -07:00

19 lines
426 B
TypeScript

import { Suspense } from 'react'
import { cookies } from 'next/headers'
export default function Page() {
return (
<main>
<p>This is the children page with cookies() properly inside Suspense</p>
<Suspense fallback={<p>Loading dynamic content...</p>}>
<DynamicContent />
</Suspense>
</main>
)
}
async function DynamicContent() {
await cookies()
return <p>Dynamic content loaded</p>
}