Daniel Burnhan
07/21/2021, 8:03 PMAnthony
07/21/2021, 9:19 PMIan Lake
07/21/2021, 9:41 PM@Composable
lambda of a destination is disposed when you go to a new destination, yes - that old screen is no longer part of your UIIan Lake
07/21/2021, 9:41 PMrememberSaveable
objects will be saved and restored when you return to that screenIan Lake
07/21/2021, 9:42 PMViewModel
associated with that screen is indeed kept in memory until that screen is popped off the back stack)mario
07/21/2021, 10:40 PMIan Lake
07/21/2021, 10:42 PMViewModel
in a composable
screen of a NavHost
, it is tied to that screen, not to the activity. Exactly the same case as how a fragment based world workedmario
07/21/2021, 10:44 PMDaniel Burnhan
07/22/2021, 1:30 PM