mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Copy&pasting some of the existing test cases for `with-cached-io/with-static-params/with-suspense` to `with-cached-io/without-static-params`. We expect the same results. We do not copy `with-cached-io/with-static-params/without-suspense`. Those cases are expected to yield build errors, because when there are no static params defined, we don't allow an empty shell.
21 lines
491 B
React
21 lines
491 B
React
'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>
|
|
)
|
|
}
|