Skip to content

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

@Ainias

Description

@Ainias

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corerelates to core classes // parts of the librarykind: bugSomething isn't workingrelease: major

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions