Need a highlight on this:
liveData(viewModelScope.coroutineContext +
Dispatchers.IO)
Here we are passing viewModelScope.coroutineContext because we want to cancel request as soon as ViewModel destroys. In my opinion if repository returns livedata it’s still worthy to add viewModelScope because otherwise our request will not cancel.
Is it a correct statement?