next.js/test/e2e/app-dir/instant-validation/app/suspense-in-root/runtime/suspense-too-high/layout.tsx
layout.tsx9 lines393 B
import { ReactNode, Suspense } from 'react'

export default function Layout({ children }: { children: ReactNode }) {
  // TODO: technically, we could consider this is valid,
  // because this layout isn't shared with anything else,
  // so we'll always prefetch it together with the page and not have a blocking nav.
  return <Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
}
Quest for Codev2.0.0
/
SIGN IN