silverwolf-x's picture
download
raw
852 Bytes
import { Suspense } from 'react'
import { UncachedFetch, CachedData } from '../data-fetching'
import { PrivateCachedData } from './data-fetching'
export const unstable_instant = true
export const unstable_prefetch = 'force-runtime'
const CACHE_KEY = '/private-cache/__LAYOUT__'
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
{children}
<section>
<h1>Layout</h1>
<p>This data is from a layout</p>
<CachedData label="layout" cacheKey={CACHE_KEY} />
<Suspense fallback="Loading private cache...">
<PrivateCachedData label="layout" cacheKey={CACHE_KEY} />
</Suspense>
<Suspense fallback="Loading uncached fetch...">
<UncachedFetch label="layout" cacheKey={CACHE_KEY} />
</Suspense>
</section>
</>
)
}

Xet Storage Details

Size:
852 Bytes
·
Xet hash:
fc5041331469637a2141ff16f4456af5de77e6f86415a529c0067324dfa57995

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