Closed mattgperry closed 4 weeks ago
This PR binds stop to the animation to fix a pattern where animation.stop is passed back from useEffect.
stop
animation.stop
useEffect
useEffect(() => { const animation = animate() return animation.stop })
This PR binds
stop
to the animation to fix a pattern whereanimation.stop
is passed back fromuseEffect
.