Skip to content

[bug]: Latest version of react-spring useTransition re-renders multiple times #1933

@Socvest

Description

@Socvest

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.4.5

What's Wrong?

When animating with useTransition, it appears that when I do the action that activates the animation, it re-renders multiple times. I have searched previous isssues on github and have seen many with this problem but not sure what exactly the solution is. Could I get some help as to why this is happening?

To Reproduce

(Look below at codesandbox link)

This is what the issue looks like
Example

Expected Behaviour

I want it to behave like tihs

Link to repo

Repo/codesandbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions