collectState
fun <STATE : Any, SIDE_EFFECT : Any> ContainerHost<STATE, SIDE_EFFECT>.collectState(lifecycleState: Lifecycle.State = Lifecycle.State.STARTED, state: suspend (state: STATE) -> Unit)
Deprecated
This API will no longer be supported for Compose. Use collectAsState or container.refCountStateFlow instead
Observe Container.stateFlow in a Compose LaunchedEffect.
Parameters
lifecycleState
Lifecycle.State in which state block runs.
Active subscriptions from this operator count towards repeatOnSubscription subscribers.