zoha131
11/13/2020, 3:47 PMviewModel scoped to a composable using navigation-compose?Ian Lake
11/13/2020, 4:58 PMviewModel() inside those composablesnrobi
11/13/2020, 5:36 PMsetContent, since it has to be tied to a ViewModelStoreOwnernrobi
11/13/2020, 5:36 PMIan Lake
11/13/2020, 5:43 PMViewModelStoreOwner for each NavBackStackEntry as per the docs: https://developer.android.com/guide/navigation/navigation-programmatic#navbackstackentryIan Lake
11/13/2020, 5:44 PMNavHost overrides the ambients so that viewModel() within the composable uses that scoped ownerIan Lake
11/13/2020, 5:45 PMIan Lake
11/13/2020, 5:46 PMnrobi
11/13/2020, 5:50 PMzoha131
11/13/2020, 6:26 PM