Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Immediate does not work when to is an array #2204

Open
2 of 5 tasks
Ainias opened this issue Sep 24, 2023 · 0 comments
Open
2 of 5 tasks

[bug]: Immediate does not work when to is an array #2204

Ainias opened this issue Sep 24, 2023 · 0 comments
Labels
template: bug This issue might be a bug

Comments

@Ainias
Copy link

Ainias commented Sep 24, 2023

Which react-spring target are you using?

  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog

What version of react-spring are you using?

9.7.3 amd 10.0.0-alpha.1

What's Wrong?

When I have an array for the to-prop in order to chain animations and then set immediate to true, the animation runs normally and does not jump to the goal value.

To Reproduce

  1. use useSpring with an array for the to-prop
  2. set immediate: true

Expected Behaviour

The animation chain should jump right to the end of the last step without animating anything

Link to repo

https://codesandbox.io/s/clever-visvesvaraya-w5f9lg?file=/src/App.js

@Ainias Ainias added the template: bug This issue might be a bug label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug This issue might be a bug
Projects
None yet
Development

No branches or pull requests

1 participant