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

24 lines
544 B
TypeScript

import Link from 'next/link'
import { Suspense } from 'react'
async function Content(props) {
const params = await props.params
return <h1 id="slug-page">Visiting page {params.slug}</h1>
}
export default function Page(props) {
return (
<div>
<Suspense>
<Content params={props.params} />
</Suspense>
<Link href="/blog/a-post" style={{ display: 'block' }} id="to-blog-post">
Go to a post
</Link>
<Link href="/" style={{ display: 'block' }}>
Go home
</Link>
</div>
)
}