Open ex-vfa-loinh opened 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
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/.
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