- compare dependencies ourselves and skip effect (inspired by the custom comparison function of React.memo)
- declare effect callback outside of component function body and inject it with dependencies
- compare dependencies ourselves and skip effect (inspired by the custom comparison function of React.memo)
- declare effect callback outside of component function body and inject it with dependencies
usePureEffect hook is an alternative to #useEffect with pure callback and fine-grained reactivity that respects rules of React.
usePureEffect hook is an alternative to #useEffect with pure callback and fine-grained reactivity that respects rules of React.