silverwolf-x's picture
download
raw
384 Bytes
import React from 'react'
export const revalidate = 0
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:
384 Bytes
·
Xet hash:
6718403b3aacdbca119c42578d21c1c782070bf356a3bf45c7d38e8cec080e7c

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