Suresh Maidaragi
07/08/2025, 9:14 AMkoinInject<xx-viewmodel>()
is composable lifecycle aware?Suresh Maidaragi
07/08/2025, 9:43 AMkoin = "4.0.0"
koin-compose = "4.0.0"
Sergey Dmitriev
07/08/2025, 10:00 AMkoinInject
or the ViewModel
?Suresh Maidaragi
07/08/2025, 10:02 AMSergey Dmitriev
07/08/2025, 10:04 AMviewmodel becomes lifecycle aware of the composableViewModel doesn’t know anything about your composable and will be attached to ViewModelStoreOwner which can be different depending on where you use this composable. For example if you use compose navigation then your NavEntry acts as a ViewModelStoreOwnder
Suresh Maidaragi
07/09/2025, 6:04 AM