bruno.aybar
02/21/2021, 8:54 PMtransition
s had onStateChangeFinished
callback. Does anyone know if there's a similar callback on the new API?bruno.aybar
02/21/2021, 8:57 PMTransition
code and seems like that is not supported. I wonder if that could be done here 🤔 or maybe having a callback for that is not a good idea?Zach Klippenstein (he/him) [MOD]
02/21/2021, 11:35 PMbruno.aybar
02/21/2021, 11:56 PManimate*asState(...)
) apis have finishedListener
parameters, yes.
However, the transition apis (updateTransition
, transition.animate*(..)
) do not. So, when handling transitions, I'm not sure if there's a way to know "all the animations for this transition have ended"Doris Liu
02/22/2021, 6:58 PMcurrentState
that can be observed. currentState == targetState
signals that the transition for all animations has finished. 🙂bruno.aybar
02/23/2021, 12:28 AMDoris Liu
02/23/2021, 12:38 AMbruno.aybar
02/23/2021, 12:42 AMbruno.aybar
02/23/2021, 12:43 AMDoris Liu
02/23/2021, 12:44 AMonce I'm done with my changes, I would really appreciate your feedback, if possibleSure thing! I'm happy to take a look! 🙂