Is there a good pattern for ensuring a coroutine o...
# compose-desktop
g
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
Do you mean like
LaunchedEffect(Unit) { }
?
g
🤦‍♂️ I didn't even think about just keying it. Thanks haha
😁 2