некорректное отображение данных в корзине
This commit is contained in:
parent
a66218c7ab
commit
39f2cf609c
@ -19,9 +19,11 @@ open class MyViewModel : ViewModel() {
|
|||||||
|
|
||||||
fun runInScope(
|
fun runInScope(
|
||||||
actionSuccess: suspend () -> Unit,
|
actionSuccess: suspend () -> Unit,
|
||||||
actionError: suspend () -> Unit
|
actionError: suspend () -> Unit,
|
||||||
|
needLoadingScreen: Boolean = true,
|
||||||
) {
|
) {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
|
if (needLoadingScreen)
|
||||||
apiStatus = ApiStatus.LOADING
|
apiStatus = ApiStatus.LOADING
|
||||||
runCatching {
|
runCatching {
|
||||||
actionSuccess()
|
actionSuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user