Thoughts on this hook? Yay or nay? :smile: <https:...
# random
g
Thoughts on this hook? Yay or nay? 😄 https://gist.github.com/spion/09af04ea2ae8b6858e8edce11002b063
It lets you create a manually triggered useEffect (returns a dispatch function that will trigger it). Main difference between this and a plain function or callback is that it will take the latest state updates into account; main difference with useEffect is that it doesn't run automatically when the dependencies change but its manually called.
t
yeah this is useful and highlights a pain point in reacts model