File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
feature-add/src/main/java/com/hoc/flowmvi/ui/add
feature-main/src/main/java/com/hoc/flowmvi/ui/main Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import com.hoc.flowmvi.core_ui.LoadingIndicator
5454import com.hoc.flowmvi.core_ui.LocalSnackbarHostState
5555import com.hoc.flowmvi.core_ui.OnLifecycleEvent
5656import com.hoc.flowmvi.core_ui.collectInLaunchedEffectWithLifecycle
57+ import com.hoc.flowmvi.core_ui.debugCheckImmediateMainDispatcher
5758import com.hoc.flowmvi.domain.model.UserError
5859import com.hoc.flowmvi.domain.model.UserValidationError
5960import com.hoc.flowmvi.ui.theme.AppTheme
@@ -111,6 +112,8 @@ internal fun AddNewUserRoute(
111112 val scope = rememberCoroutineScope()
112113 val context = LocalContext .current
113114 viewModel.singleEvent.collectInLaunchedEffectWithLifecycle { event ->
115+ debugCheckImmediateMainDispatcher()
116+
114117 when (event) {
115118 is SingleEvent .AddUserFailure -> {
116119 scope.launch {
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ data class UserItem(
4141 ).toEither().mapLeft { UserError .ValidationFailed (it.toSet()) }
4242}
4343
44- @Immutable
4544sealed interface ViewIntent : MviIntent {
4645 object Initial : ViewIntent
4746 object Refresh : ViewIntent
You can’t perform that action at this time.
0 commit comments