'use cache' import { getSentinelValue } from '../../getSentinelValue' export default async function Page({ searchParams: _unused, }: { searchParams: Promise> }) { return ( <>

This page renders two components. Both call a simulated IO function. The whole page is wrapped in "use cache".

Niether component is wrapped in a Suspense boundary

With PPR this page should be entirely static because all IO is cached.

Without PPR this page should be static because all IO is cached.

{getSentinelValue()}
) } async function ComponentOne() { return
message 1: {await getMessage('hello cached fast', 2)}
} async function ComponentTwo() { return ( <>
message 2: {await getMessage('hello cached fast', 0)}
message 3: {await getMessage('hello cached slow', 20)}
) } async function getMessage(echo, delay) { await new Promise((r) => setTimeout(r, delay)) return echo }