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
I expect that setMotion and stopMotion will be functions I can use to start and end my animations and indeed setMotion works as expected when called as:
setMotion({transform: 'scaleX(1)'});
However stopMotion keeps returning undefined.
(A clear and concise description of what you expected to happen.)
🐛 Bug Report
Undefined is being returned for
stop
- the third optional return, when a callback function is passed intouseSpring
To Reproduce
I have the following:
with the jsx:
Expected behavior
I expect that setMotion and stopMotion will be functions I can use to start and end my animations and indeed
setMotion
works as expected when called as:However
stopMotion
keeps returning undefined.(A clear and concise description of what you expected to happen.)
Link to repro (highly encouraged)
Here's a reproduced demo
CodeSandbox demo
Environment
react-spring
v8.0.4react
v16.8.0The text was updated successfully, but these errors were encountered: