react-google-charts icon indicating copy to clipboard operation
react-google-charts copied to clipboard

Fetching data continuously

Open ex-vfa-loinh opened this issue 4 years ago • 1 comments

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

ex-vfa-loinh avatar Mar 19 '20 10:03 ex-vfa-loinh

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/.

steventsao avatar Dec 20 '21 00:12 steventsao