i have an animation that i run when i go to screen...
# compose
t
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
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
thank you so much! SideEffect worked really well for me