From Dev.to
React useEffect Dependencies — The Bug That Keeps Coming Back
useEffect looks simple. Add a function, add a dependency array, done. Then production hits you with: a timer that logs the wrong count a fetch that sends a stale token an effect that runs forever o...
