Impl base structure of bottom-navigation
This commit is contained in:
@@ -12,12 +12,14 @@ fun SplashRoute(
|
||||
viewModel: SplashViewModel = hiltViewModel()
|
||||
) {
|
||||
val state = viewModel.state.collectAsStateWithLifecycle().value
|
||||
LaunchedEffect(Unit) {
|
||||
|
||||
LaunchedEffect(viewModel) {
|
||||
viewModel.effects.collect { effect ->
|
||||
when (effect) {
|
||||
SplashEffect.OpenMain -> onFinish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SplashScreen(state = state)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user