mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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.
19 lines
426 B
TypeScript
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>
|
|
}
|