David Nedrow
07/09/2025, 2:11 AMlifecycle-viewmodel
between Android and iOS WITHOUT Compose Multiplatform involved?François
07/09/2025, 5:56 AMMarcello Galhardo
07/10/2025, 8:41 AMChris Cartland
07/17/2025, 5:23 PMFrançois
07/17/2025, 7:50 PMFrançois
07/17/2025, 7:54 PMonCleared
of the KMP ViewModel is privateFrançois
07/17/2025, 8:01 PMChris Cartland
07/18/2025, 3:30 AMChris Cartland
07/18/2025, 3:33 AMNavigationLink {
ViewModelStoreOwnerProvider {
FruittieScreen(fruittie: value)
}
} label: {
FruittieView(fruittie: value)
}
François
07/19/2025, 9:08 AMViewModelStore
solves a SwiftUI lifecycle issue by bringing in a Kotlin Compose concept.
Yeah, it works, it’s just too exotic for me to keep a ViewModel alive in contrast to a classic SwiftUI ViewModel.
Just I don’t like the use of onDisappear
event to control the deletion of the view model unlike the SwiftUI ViewModel which is based on the deinit.