Skip to content

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

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

Activity

  1. added
    kind: bugSomething isn't working
    area: corerelates to core classes // parts of the library
    and removed on May 23, 2026
  2. added this to the milestone on May 23, 2026
  3. removed this from the milestone on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions