useSpring does not orchestrate animations if one is using config w/o duration, when others do #1584
Labels
kind: bug
Something isn't working
released in beta
this has been released on a beta
released
This has been released on stable
Milestone
🐛 Bug Report
I am trying to chain two animations so they should work in sequence, however, they're happening at the same time. The first animation is using animation configuration, while another - only duration.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
useChain successfully orchestrates useSpring and useTransition and knows how to handle animations with different configurations, i.e. when useSpring ens, useTransition starts and vice versa.
Link to repro (highly encouraged)
CodeSandbox demo.
Here bug is visible when toggling reverse animation...when a box is hiding its content.
Environment
react-spring
v9.2.3react
v17.0.1The text was updated successfully, but these errors were encountered: