You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's how onRest is currently working, it animates between 100% and 100% and comes to a rest immediately. If if didn't do that, then you couldn't await async animations, since onRest wouldn't be called once you animate towards a value that's already set.
Problem: Once completed, onRest function is called on every rerender.
minimal codesandbox demo
Expected: the count should only increment once.
Current Behaviour: after rerender the onRest function is called again, and the count gets updated.
Versions in this demo:
"react-spring": "8.0.19",
"react": "16.8.3",
"react-dom": "16.8.3"
The text was updated successfully, but these errors were encountered: