4 ms·
What are you talking about? The setInterval example is completely idiomatic React hooks. It is literally given in the React docs: https://reactjs.org/docs/hook
by stupidcar 5y ago
What are you talking about? The setInterval example is completely idiomatic React hooks. It is literally given in the React docs:
https://reactjs.org/docs/hooks-faq.html#what-can-i-do-if-my-effect-dependencies-change-too-often https://reactjs.org/docs/hooks-faq.html#what-can-i-do-if-my-...
- MiddleMan5 5y agoReading it now, the language I used was inappropriate. You're correct, the stated problem is common with registering and triggering self-repeating and timed loops. That was really my point, don't do that.