Files
Josh StoryandGitHub 766b7cbff4 Stabilize unstable_io (#93621)
Removes the unstable prefix from `unstable_io`. Since this was only
shipped in canaries with the unstable prefix we are going to just remove
it without retaining the unstable prefix simultaneously.
2026-05-07 16:39:37 -07:00

16 lines
331 B
TypeScript

import { io } from 'next/cache'
export default function PagesGSP({ rendered }: { rendered: string }) {
return (
<>
<p>This page uses io() in getStaticProps.</p>
<div id="pages-content">{rendered}</div>
</>
)
}
export async function getStaticProps() {
await io()
return { props: { rendered: 'ok' } }
}