next.js/test/e2e/app-dir/navigation-layout-suspense/app/nested/layout.js
layout.js18 lines369 B
import { Suspense } from 'react'
import Link from 'next/link'

export const dynamic = 'force-dynamic'

export default async function Layout(props) {
  return (
    <>
      <div>
        <Link href={`/`} className="text-blue-500">
          Home Page
        </Link>
      </div>
      <Suspense fallback={<h1>Loading...</h1>}>{props.children}</Suspense>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN