Skip to content

[bug]: useTransition with a function not working #2287

@SageJustus

Description

@SageJustus

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?

latest

What's Wrong?

The With a function & deps approach does not work properly, while the With a config object approach works properly.

To Reproduce

transitions1 not working

Expected Behaviour

transitions1 working

Link to repo

https://codesandbox.io/p/sandbox/use-spring-1-58c7f3?file=%2Fsrc%2FApp.tsx%3A28%2C10-28%2C22

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