Observing MediatorLiveData Issue
I have the following LiveData variables in my ViewModel (simplified example): I'm trying to use MediatorLiveData to have one 'stream' of data connecting to my RecyclerView. I ther
Solution 1:
You can use postValue
instead of setValue
If you called this method multiple times before a main thread executed a posted task, only the last value would be dispatched.
Post a Comment for "Observing MediatorLiveData Issue"