File size: 532 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
export default async function Page() {
const data1 = await fetch(
'https://next-data-api-endpoint.vercel.app/api/random?1',
{
next: {
revalidate: 0,
},
}
).then((res) => res.text())
const data2 = await fetch(
'https://next-data-api-endpoint.vercel.app/api/random?1',
{
next: {
revalidate: 0,
},
}
).then((res) => res.text())
return (
<>
<p>/react-fetch-deduping</p>
<p id="data-1">{data1}</p>
<p id="data-2">{data2}</p>
</>
)
}
|