Android, Jetpack Compose, AndroidDev, Software Architecture.
viewModel::submitLogin, onNavigateBack = onNavigateBack, onNavigateToForgotPassword = onNavigateToForgotPassword, ) } } The second extension also connects the screen composable with a corresponding view model. When we use Compose Navigation, view models live as long as destinations in the NavHost,