collectSideEffect

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

Observe Container.sideEffectFlow in a Compose LaunchedEffect.

Active subscriptions from this operator count towards Syntax.repeatOnSubscription subscribers.

Parameters

lifecycleState

Lifecycle.State in which side effects are collected.