Files
danandGitHub 2dea98ed31 [test] Run more test suites under cacheComponents flag, again (#96196)
Reverts the revert of #95878.

This failed on `main` due to React bugs
(https://github.com/react/react/pull/37061?) which are fixed now.
2026-07-27 20:54:09 +01:00

18 lines
391 B
JavaScript

import { Suspense } from 'react'
import Link from 'next/link'
import { connection } from 'next/server'
export default async function Layout(props) {
await connection()
return (
<>
<div>
<Link href={`/`} className="text-blue-500">
Home Page
</Link>
</div>
<Suspense fallback={<h1>Loading...</h1>}>{props.children}</Suspense>
</>
)
}