Stylianos Gakis
03/29/2023, 9:58 PMkoinViewModel
@Composable function?
I can’t find a README on that module in the project, nor any specific docs, but I could definitely be missing something.arnaud.giuliani
03/31/2023, 1:19 PMarnaud.giuliani
03/31/2023, 1:19 PMStylianos Gakis
03/31/2023, 1:40 PMStylianos Gakis
04/07/2023, 9:18 AMarnaud.giuliani
04/11/2023, 10:00 AMStylianos Gakis
04/11/2023, 10:04 AMkoinNavViewModel
exists now, and as far as I understand it is what you are supposed to be using when trying to get your ViewModel inside a navigation destination.
This blog was written a bit before that API existed and is still using koinViewModel
instead.
And I thought maybe it’d be a good idea to update that article with the new API instead.
Unless I am somehow misunderstanding what koinNavViewModel
is for.Matt Rea
04/11/2023, 5:36 PMthe difference between koinViewModel and koinNavViewModel is the ability to handle the NavBackStackEntryDoes this mean if you use
koinNavViewModel
, Koin will clear the instance after the NavBackStackEntry is popped, like Hilt does?