- did you know that you can conditionally exit an effect? this is useful if you want a subscription to only stay active while some condition is true, and to stay removed while that condition is false. a bit mindbending, but so it is with react!
- Also, dont hesitate to make multiple useEffects in a component. Instead of a fat useEffect with lots of props
- yup, one useEffect per one distinct synchronization processNov 2, 2024 23:51