pmndrs / react-spring

✌️ A spring physics based React animation library
http://www.react-spring.dev/
MIT License
27.73k stars 1.18k forks source link

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

Open SageJustus opened 1 month ago

SageJustus commented 1 month ago

Which react-spring target are you using?

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