observeSideEffects
fun <STATE : Any, ACTION : Any, SIDE_EFFECT : Any> Bloc<STATE, ACTION, SIDE_EFFECT>.observeSideEffects(): State<SIDE_EFFECT?>
Adapter for Jetpack / Jetbrains Compose to observe a Bloc's side effects as androidx.compose.runtime.State:
val sideEffects = bloc.observeSideEffects()
fun <STATE : Any, ACTION : Any, SIDE_EFFECT : Any, PROPOSAL : Any> BlocOwner<STATE, ACTION, SIDE_EFFECT, PROPOSAL>.observeSideEffects(): State<SIDE_EFFECT?>
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
fun <STATE : Any, SIDE_EFFECT : Any> BlocObservable<STATE, SIDE_EFFECT>.observeSideEffects(): State<SIDE_EFFECT?>
Adapter for Jetpack / Jetbrains Compose to observe a BlocObservable's/Bloc's side effects as androidx.compose.runtime.State:
val sideEffects = observable.observeSideEffects()
fun <STATE : Any, SIDE_EFFECT : Any> BlocObservableOwner<STATE, SIDE_EFFECT>.observeSideEffects(): State<SIDE_EFFECT?>
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