collectSideEffect

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

Observe OrbitContainer.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.