collectSideEffect

@Composable
fun <STATE : Any, SIDE_EFFECT : Any> ContainerHost<STATE, SIDE_EFFECT>.collectSideEffect(lifecycleState: Lifecycle.State = Lifecycle.State.STARTED, sideEffect: suspend (SIDE_EFFECT) -> Unit)

Observe Container.sideEffectFlow in a Compose LaunchedEffect.

Parameters

lifecycleState

Lifecycle.State in which state block runs.

Sources

Link copied to clipboard