Open utterances-bot opened 1 year ago
This is awesome, I was working on time specific handling for duplicate events, and was getting stuck on state and timeout. Not only did this article fix the problem for me, it also made my solution more elegant and taught me a lot about how react works in a very understandable way. Thanks!
@tsaomaxwell thanks for the nice words. I'm glad that you found it useful!
Using setTimeout in React components (including hooks) | Felix Gerschau
Using timeouts in React isn't as straightforward as you may think. In this article, you'll learn how to avoid mistakes when using them in React.
https://felixgerschau.com/react-hooks-settimeout/