1 min readJun 11, 2020
Hello! Thank you for the post! I used the MediatorLiveData approach and i just found a bug. The thing is that calling mediator.postValue() inside onChange doesn’t update the recyclerView if i delete the last item of the list because it never enters the foreach block. I solved it posting value just before returning the mediator