Shivam Sethi
02/26/2021, 1:49 AMAlbert Chang
02/26/2021, 1:52 AMIan Lake
02/26/2021, 1:56 AMgetBackStackEntry(routeOfYourGraph)
val sharedViewModel : MyViewModel = ViewModelProvider(graphBackStackEntry).get()
Shivam Sethi
02/26/2021, 2:44 AMIan Lake
02/26/2021, 3:49 AMNavBackStackEntry
would at least remove the ViewModel when you dispose of the NavHost
/ NavController
Shivam Sethi
02/26/2021, 5:49 AM