Files
Josh StoryandGitHub d424aa8ec4 Stabilize unstable_instant (#94578)
This API has experimental modes for build validation but the dev
validation is going to be stable in the next release.
2026-06-09 13:50:25 -07:00

20 lines
460 B
TypeScript

export const instant = { level: 'experimental-error' }
export default async function Page() {
await cachedIO()
return (
<main>
<p>
This page awaits a cache. This should never need a suspense boundary.
This is a sanity check to make sure that we warm caches correctly when
validating.
</p>
</main>
)
}
async function cachedIO() {
'use cache'
await new Promise<void>((resolve) => setTimeout(resolve, 5))
}