How to deal with constantly updating data

So i have an app that fetches some data from some endpoint. Some of this data will change every 2 weeks, not all of it. One way to get the updated date would be to restart the app. Would i need to setup a cron job? setInterval? Im wondering what would be a good way to go about this. If it helps, this is relating to the game league of legends, which has patches every 2 weeks.
6 Replies
Pod
Pod3y ago
How about ISR?
Řambo
ŘamboOP3y ago
what if im not using nextjs
Pod
Pod3y ago
What are you using?
Řambo
ŘamboOP3y ago
just react
Pod
Pod3y ago
ISR would definitely be the best method here if you could convert to next, otherwise i'd just do a cron or interval like you mentioned
Řambo
ŘamboOP3y ago
alright thanks
Want results from more Discord servers?
Add your server