Files
2ed06f03e8 label as Prefetch/Prefetchable depending on prefetch config (#85076)
Tweaks the environment label logic to only use label things as
`Prefetch` if there's a runtime prefetch config. If there's none, we
label it as `Prefetchable` instead.

---------

Co-authored-by: Josh Story <[email protected]>
2025-10-20 10:34:35 -07:00

27 lines
606 B
TypeScript

import { Suspense } from 'react'
import {
CachedData,
CachedFetch,
SuccessiveCachedData,
UncachedFetch,
} from '../data-fetching'
const CACHE_KEY = __dirname + '/__PAGE__'
export default async function Page() {
return (
<main>
<h1>Warmup Dev Renders</h1>
<CachedData label="page" cacheKey={CACHE_KEY} />
<SuccessiveCachedData label="page" cacheKey={CACHE_KEY} />
<CachedFetch label="page" cacheKey={CACHE_KEY} />
<Suspense fallback="Loading uncached fetch...">
<UncachedFetch label="page" cacheKey={CACHE_KEY} />
</Suspense>
</main>
)
}