<The docs> state that if you use the below as `rem...
# compose
a
The docs state that if you use the below as
rememberCoroutineScope().launch { }
then bugs may appear; since Compose can call the composables at any moment. In this scenario, or in any scenario, when is it likely to happen? I understand the concept but I can't think of any examples when this may actually happen.
Copy code
LaunchedEffect(onTimeout) {
  delay(SplashWaitTime)
  onTimeout()
}
z
Composables will be recomposed whenever state objects they read are changed, or when their caller is recomposed and passes in changed arguments. But that’s not just a bad idea because of the possibility of composing too many times. You need to avoid performing side effects in compositions directly because compositions can fail or be ran speculatively (composition results discarded).