MediatorLiveData is used when you want to observe another
LiveData and react when it changes. It is useful to create custom transformations.
It is quite powerful and it shines when you want to handle the logic of fetching the data from a database or from the web server.
In this lesson, we will look how to use
MediatorLiveData and also see a snippet how can we use
MediatorLiveData when dealing with database and web server.