Buckets:
silverwolf-x/project / test /e2e /app-dir /cache-components-errors /fixtures /dev-cache-bypass /app /page.tsx
| import { Suspense } from 'react' | |
| import Link from 'next/link' | |
| export default async function Page() { | |
| return ( | |
| <main> | |
| <section> | |
| <p> | |
| This page has has a slow to fill cache. When not bypassing the dev | |
| cache the initial load should be slow while the cache warms up. You | |
| won't see the Suspense fallback because the entire response is blocked | |
| until the cache warms up. Subsequent loads should be fast because the | |
| cache is warm and nothing needs to Suspend When bypassing caches in | |
| dev with "disable cache" the request should instantly show a fallback | |
| UI and show the final content after the delay. | |
| </p> | |
| </section> | |
| <section> | |
| <Suspense fallback={<p>Loading from cache...</p>}> | |
| <CachedData /> | |
| </Suspense> | |
| </section> | |
| <Link href="/other">/Other</Link> | |
| </main> | |
| ) | |
| } | |
| async function CachedData() { | |
| 'use cache' | |
| await new Promise((r) => setTimeout(r, 2000)) | |
| return <p>{42}</p> | |
| } | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- 0d4ac6c29275d19300ecf57a084ca01b6eee488d8a5ea2d6f007914b7f2c2201
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.