If I analyzed that correct, the callback waits for the animation to finish.
Giving the Use Case that a Trigger Button's Color should change onToggle, this creates an ugly visible delay :/
I could imaging 3 ways to fix this issue:
an additional callback, which fires on before the animation finishes
move the innerDrawerCallback before the animation (might create issues for other existing use cases I am not aware of)
open the value of InnerDrawerState, so one can listen to the actual value change and react
If I analyzed that correct, the callback waits for the animation to finish. Giving the Use Case that a Trigger Button's Color should change onToggle, this creates an ugly visible delay :/ I could imaging 3 ways to fix this issue:
(sry, if I am to overreaching)