i have an animation that i run when i go to screen B but it seems that the animation starts while im still transitioning from A to B, (a few moments early) how can i know the transition is finished from A to B before so i can run my animation?
a
alitahasubfly
12/26/2023, 10:45 AM
add a SideEffect to the composable. it was a long time since I last checked, but somewhere, I have read that SideEffect works after composition is finished (every time). I might be wrong, but if it still works like that, you can hold a remembered value if the screen is drawn and start the animation when that value is true
🙌 1
t
Taha
01/15/2024, 10:17 AM
thank you so much! SideEffect worked really well for me