next.js/test/e2e/app-dir/fallback-shells/app/with-cached-io/without-static-params/layout.jsx
layout.jsx21 lines491 B
'use cache'

import { Suspense } from 'react'
import { getSentinelValue } from '../sentinel'

export default async function Layout({ children }) {
  return (
    <html>
      <body>
        <div id="root-layout">
          Root Layout: {new Date().toISOString()} ({getSentinelValue()})
        </div>
        <p>
          This page does <em>not</em> define any static params.
        </p>
        <Suspense fallback={<p>Loading...</p>}>{children}</Suspense>
      </body>
    </html>
  )
}
Quest for Codev2.0.0
/
SIGN IN