collectState

@Composable
fun <STATE : Any, SIDE_EFFECT : Any> ContainerHost<STATE, SIDE_EFFECT>.collectState(sideEffect: suspend (STATE) -> Unit)

Observe Container.stateFlow in a Compose LaunchedEffect.

Sources

Link copied to clipboard