silverwolf-x's picture
download
raw
645 Bytes
import { Suspense } from 'react'
import { CachedData, getCachedData } from '../../data-fetching'
import { cookies } from 'next/headers'
const CACHE_KEY = __dirname + '/__PAGE__'
export default async function Page() {
return (
<main>
<h1>Sync IO - runtime stage</h1>
<Suspense fallback={<div>Loading...</div>}>
<Runtime />
</Suspense>
</main>
)
}
async function Runtime() {
await getCachedData(CACHE_KEY + '-1')
console.log(`after first cache`)
await cookies()
console.log(`after cookies`)
Date.now()
console.log(`after sync io`)
return <CachedData label="page" cacheKey={CACHE_KEY} />
}

Xet Storage Details

Size:
645 Bytes
·
Xet hash:
f57a68d820cde741d0bb1b0ca9432441e35e9ab254eef73a98fab6e4bbc1d5bd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.