next.js/test/e2e/app-dir/segment-cache/prefetch-inlining/app/test-runtime-bailout/layout.tsx
layout.tsx19 lines554 B
import { ReactNode, Suspense } from 'react'

// Small static layout. With prefetch inlining enabled, this layout's data
// should be bundled into the child's response. But since the child page uses
// runtime prefetching, the bundle needs to be flushed as a separate static
// prefetch instead.
export default function RuntimeBailoutLayout({
  children,
}: {
  children: ReactNode
}) {
  return (
    <div>
      <p id="layout-runtime-bailout">Static layout content</p>
      <Suspense fallback={<p>Loading...</p>}>{children}</Suspense>
    </div>
  )
}
Quest for Codev2.0.0
/
SIGN IN