toLiveData
fun <State : Any, Action : Any, SideEffect : Any> ViewModel.toLiveData(bloc: Bloc<State, Action, SideEffect>): LiveData<State>
Expose a Bloc as LiveData
val state = toLiveData(bloc)
Content copied to clipboard
fun <State : Any, Action : Any, SideEffect : Any> LifecycleOwner.toLiveData(bloc: Bloc<State, Action, SideEffect>): LiveData<State>
The same for Activities / Fragments