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.
18 lines
376 B
React
18 lines
376 B
React
'use cache'
|
|
|
|
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 define some static params.</p>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|