Instead of MutableLiveData with default value to MutableStateFlow
Instead of MutableLiveData without default value to MutableSharedFlow
Instead of SingleLiveEvent to Channel.receiveAsFlow
s
Stew Boling
09/14/2021, 11:36 AM
Yes, although most cases for SingleLiveEvent you could use a MutableSharedFlow with no buffer or replay