João Pinto
08/25/2023, 2:22 PMPablichjenkov
08/25/2023, 2:27 PMCasey Brooks
08/25/2023, 2:57 PMJoão Pinto
08/25/2023, 3:00 PMCasey Brooks
08/25/2023, 3:08 PMLazyListState
which is part of the composition. So what you should really be looking for is a way to keep the composition active in the backstack, not the ViewModel. Keeping the composition active is what will retain the list state, your ViewModels, and any other Saveables
.João Pinto
08/25/2023, 3:12 PMhiltviewmodel()
or Koin's getViewModel()
, the recomposition still happens but the viewmodels aren't destroyedCasey Brooks
08/25/2023, 3:15 PMJoão Pinto
08/25/2023, 3:33 PM