I am using React and fetching data from an API which has a limit of 50 calls per minute and my app is consuming most of them when load the page that displays that data because it is organized in a table and each line is an HTTP request to the API (see screenshot):
Obviously the problem is that when the user refreshes within 1 minute most of the data doesn't load and the console is flooded with cors error.
I thought to write a node.js script that fetches the data every minute and write it into a file so the front end can use it without issues but how would I do it without writing a backend script?
How can I write every minute into a file to store the fetched API data without incurring into the problem that each time the user refreshes the page the 1 minute timer resets?
