Alexandru Gheorghe
10/26/2024, 10:24 AMmutableStateOf(...)
variables were reset to default, initial(ized), values. This is the first time it ever happened to me. Any clues on how to address it without introducing init
in ViewModels?Stylianos Gakis
10/26/2024, 10:28 AMTimo Drick
10/26/2024, 11:43 AMStylianos Gakis
10/26/2024, 5:26 PMIan Lake
10/29/2024, 9:40 PMsavedStateHandle.saveable
extensions available for backing your MutableState with the SavedStateHandle
so that it can survive configuration change - it uses the same Saver
APIs that rememberSaveable
uses: https://developer.android.com/reference/kotlin/androidx/lifecycle/viewmodel/compose/package-summary?hl=en#extension-functions