-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
kind: bugSomething isn't workingSomething isn't working
Milestone
Description
🐛 Bug Report
(A clear and concise description of what the bug is.)
To Reproduce
- Press the toggle button in the demo. The square animates OK.
- Press it again -> it animates "immediately". This is expected as we set
default: { immediate: true }
in thesetStyle(...)
call. - Press it yet again -> it animates "immediately". This is NOT expected as we set
immediate: false
in thesetStyle(...)
call. It works as expected if we usedefault: { immediate: false }
and override the "default" props. However, I think the default props should be overridden by setting specific props in the function calls.
See https://codesandbox.io/s/quirky-goodall-6z3og?file=/src/App.js
Expected behavior
The default props should be overridden by "inline" props.
Link to repro (highly encouraged)
https://codesandbox.io/s/quirky-goodall-6z3og?file=/src/App.js
Environment
react-spring
v9.0.0.-rc3react
v16.12
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't working