observeSideEffects

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

val sideEffects = bloc.observeSideEffects()


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

val sideEffects = observeSideEffects() // assuming this is a BlocOwner


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

val sideEffects = observable.observeSideEffects()


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

val sideEffects = observable.observeSideEffects() // assuming this is a BlocObservableOwner