Skip to content

Commit b3688f7

Browse files
authored
Updated function call order for consistency. (#378)
1 parent 8815d65 commit b3688f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

architecture/ui/src/main/java/com/mitteloupe/whoami/architecture/ui/view/BaseComposeHolder.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ abstract class BaseComposeHolder<VIEW_STATE : Any, NOTIFICATION : PresentationNo
1717
) {
1818
@Composable
1919
fun ViewModelObserver(navController: NavController) {
20-
viewModel.navigationEvent.collectAsState(initial = null)
21-
.value?.let { navigationValue ->
22-
Navigator(navigationValue, navController)
23-
}
24-
2520
viewModel.notification.collectAsState(initial = null)
2621
.value?.let { notificationValue ->
2722
Notifier(notification = notificationValue)
2823
}
24+
25+
viewModel.navigationEvent.collectAsState(initial = null)
26+
.value?.let { navigationValue ->
27+
Navigator(navigationValue, navController)
28+
}
2929
}
3030

3131
@Composable

0 commit comments

Comments
 (0)