rakannimer / react-google-charts

A thin, typed, React wrapper over Google Charts Visualization and Charts API.
https://react-google-charts.com/
MIT License
1.6k stars 346 forks source link

Fetching data continuously #346

Open ex-vfa-loinh opened 4 years ago

ex-vfa-loinh commented 4 years ago

I have an api get data for chart, instead of it fetch on time on load page, it fetch data continuously. So if an thousands user use my page, it take down my server

steventsao commented 2 years ago

Are you using useEffect with explicit dependency? I am just double-checking this is a lib issue instead of a common gotcha on React https://dmitripavlutin.com/react-useeffect-infinite-loop/.