Jakub Ledwon
01/06/2021, 6:45 PMIan Lake
01/06/2021, 6:51 PMNavHost
, using the viewModel()
API within a screen will automatically scope that ViewModel to the current composable
screen.Mehdi Haghgoo
01/06/2021, 7:07 PMcomposable
screen?Mehdi Haghgoo
01/06/2021, 7:07 PMJakub Ledwon
01/06/2021, 7:09 PMNavHost
automatically scoping the ViewModel
I can't find anything about it 😕 .Jakub Ledwon
01/06/2021, 7:10 PMcomposable
screen I meant each composable
created in NavGraphBuilder
, each of them has its ViewModel
in my usecase.Ian Lake
01/06/2021, 7:14 PMIan Lake
01/06/2021, 7:15 PMcomposable
in your NavHost
Jakub Ledwon
01/06/2021, 7:32 PM