https://kotlinlang.org logo
#moko
Title
# moko
t

Tushar Gupta

12/04/2023, 2:16 AM
https://github.com/icerockdev/moko-mvvm/pull/233 Going through this enhancement, now using getViewModel() in composable screen, viewmodel will be preserved on configuration change and also on cleared will be called on composition death. On other platforms also onCleared() will be called, but still not clear whether viewmodel will be preserved in configuration change also in other platforms?? Anyone tested it or have some rigid info?
a

alex009

12/04/2023, 1:28 PM
hi. on other platforms not exist case recreation of composable at configuration change. so specific details required only for android. on other platforms all handled by compose memory (remember)
3
t

Tushar Gupta

12/04/2023, 2:55 PM
Cool thanks
5 Views