Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: useTransition with boolean item and function config doesn't animate since 9.5.2 #2180

Open
1 of 5 tasks
jordanoverbye opened this issue Jul 25, 2023 · 0 comments
Open
1 of 5 tasks
Labels
template: bug This issue might be a bug

Comments

@jordanoverbye
Copy link

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

What's Wrong?

When using useTransition, if you pass in a boolean as the first argument and a function as the second argument, the transitions do not run as expected.

This syntax use to work in previous versions up until version 9.5.2, where it's suddenly stopped working.

To Reproduce

Code sandbox which demonstrates the issue https://codesandbox.io/s/little-voice-5hl8w6?file=/src/App.tsx

Expected Behaviour

If this syntax is not valid, I would expect to see some Typescript errors.

If it is valid syntax, I expect the transitions to run as expected.

Link to repo

https://codesandbox.io/s/little-voice-5hl8w6?file=/src/App.tsx

@jordanoverbye jordanoverbye added the template: bug This issue might be a bug label Jul 25, 2023
@jordanoverbye jordanoverbye changed the title [bug]: useTransition with boolean item and function config object doesn't animate since 9.5.2 [bug]: useTransition with boolean item and function config doesn't animate since 9.5.2 Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug This issue might be a bug
Projects
None yet
Development

No branches or pull requests

1 participant