Skip to content

[bug]: in v9.5.1 the first element in useTransition not expiring #1948

@walteh

Description

@walteh

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?

v9.5.1

What's Wrong?

I just updated to v9.5.1 and a useTranstion hook that I have been using successfully for the last few months is failing in react-native. I also tested in react for the codesandbox and I am seeing the same result.

Basically the components just pile on top of each other instead of transitioning. Seems like a consistent issue is that the first one that renders never leaves.

I have noticed that sometimes it starts working fine eventually, but always after mount it is failing.

Example:

v9.5.0.mov
v9.5.1.mov

To Reproduce

Please see link below - I hacked together a quick poc using the exact same useTransition logic from my project but simplified everything else.

Apologies about the styling and crappy logic, just trying to boil the issue down.

Expected Behaviour

Only one component shows at a time.

Link to repo

https://codesandbox.io/s/stupefied-rui-zhov18

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: corerelates to core classes // parts of the librarykind: bugSomething isn't workingreleasedThis has been released on stable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions