Next.js Discord

Discord Forum

How periodically reload RSC in nextjs - based on vercel article?

Unanswered
Burmese posted this in #help-forum
Open in Discord
BurmeseOP
I read vercel aticle - https://vercel.com/blog/building-the-black-friday-cyber-monday-live-dashboard
One thing I am missing is that how exacly vercel enforces RSC to reload in interval ?

async function Statistics() {
    const { value, rateOfChange } = await getData();
    return <Counter value={value} rateOfChange={rateOfChange} />;
}


Based on this Statistics has to be rerendered every 10 seconds. How to you achive this ?

0 Replies