Open maiconhellmann-n5 opened 5 years ago
I could not find any mechanism to cancel the requests in the ViewModels. Example DetailViewModel line 48: withContext(dispatchers.io) { userSource = getUserDetailUseCase(forceRefresh = forceRefresh, login = argsLogin) }
ViewModels
DetailViewModel
withContext(dispatchers.io) { userSource = getUserDetailUseCase(forceRefresh = forceRefresh, login = argsLogin) }
Is it the case to use androidx.lifecycle with viewModelScope(although still in alpha)? https://developer.android.com/jetpack/androidx/releases/lifecycle
androidx.lifecycle
viewModelScope
I could not find any mechanism to cancel the requests in the
ViewModels
. ExampleDetailViewModel
line 48:withContext(dispatchers.io) { userSource = getUserDetailUseCase(forceRefresh = forceRefresh, login = argsLogin) }
Is it the case to use
androidx.lifecycle
withviewModelScope
(although still in alpha)? https://developer.android.com/jetpack/androidx/releases/lifecycle