observeState

Adapter for Jetpack / Jetbrains Compose to observe a Bloc's state as androidx.compose.runtime.State:

val state = bloc.observeState()


Adapter for Jetpack / Jetbrains Compose to observe a BlocOwner's/Bloc's state as androidx.compose.runtime.State:

val state = observeState() // assuming this is a BlocOwner


Adapter for Jetpack / Jetbrains Compose to observe a BlocObservable's/Bloc's state as androidx.compose.runtime.State:

val state = observable.observeState()


Adapter for Jetpack / Jetbrains Compose to observe a BlocObservableOwner's/Bloc's state as androidx.compose.runtime.State:

val state = observeState() // assuming this is a BlocObservableOwner