<Two results lists merged from room and API> I wou...
# stackoverflow
u
Two results lists merged from room and API I would like to add two results from API into one, but in this case I use local DAO with Room and remoteApi. I have two methods. localRepo.getFirst(elementId) remoteRepo.getSecond(query) usage in viewmodel private val _myLiveData = MediatorLiveData() [...] viewModelScope.launch { _myLiveData.postValueFromApiResponse { localRepo.getFirst(myId) -> LiveData remoteRepo.getSecond"myQuery") -> ApiResponse extensionOfLiveData suspend fun...