Is there a good pattern for ensuring a coroutine only runs when a composable is initially created, not recomposed? I currently just store the job ID or a bool flag but not sure if there is a more composable way to do that.
j
Jacob Ras
03/20/2024, 2:15 PM
Do you mean like
LaunchedEffect(Unit) { }
?
g
Garret Yoder
03/20/2024, 2:18 PM
🤦♂️ I didn't even think about just keying it. Thanks haha