next.js/test/e2e/app-dir/instant-validation/app/suspense-in-root/static/false-below-static/page.tsx
page.tsx20 lines583 B
import { cookies } from 'next/headers'

// This page opts out with `false`, but the parent layout has a
// static config. At depths where both are in the new tree, the
// layout's config wins and validation still catches this page's
// blocking cookies() call without Suspense.
export const unstable_instant = false

export default async function Page() {
  await cookies()
  return (
    <main>
      <p>
        This page has unstable_instant = false but the parent layout has
        prefetch: 'static'. The layout's config still triggers validation.
      </p>
    </main>
  )
}
Quest for Codev2.0.0
/
SIGN IN