silverwolf-x's picture
download
raw
395 Bytes
import React from 'react'
export const dynamic = 'force-dynamic'
export default async function Layout({ children }) {
console.log('re-fetching in layout')
const data = await fetch(
'https://next-data-api-endpoint.vercel.app/api/random'
)
const randomNumber = await data.text()
return (
<div>
<p id="random-number">{randomNumber}</p>
{children}
</div>
)
}

Xet Storage Details

Size:
395 Bytes
·
Xet hash:
77314af707a35d4e4f52bf1400973f7dcc82f799c7d4881b71490066b1377b27

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