Closed
Description
useEffect
doesn't appear to work as a "one time effect". I'd like to use it to send a message to a web worker when a component loads, but nothing happens until the component unmounts. I'd use useAff
, but because it sets state, I'm getting into a nasty infinite loop in my particular case. If you need an example, I can put one together, but perhaps I just need clarification on how to do a "one time efect"
Thanks!
Metadata
Metadata
Assignees
Labels
No labels