HI. <@U2JKKPMEE>, what about support Android Saved...
# koin-contributors
k
HI. @arnaud.giuliani, what about support Android Saved State for Viewmodel?
a
already done in current 2.1.0
k
👍
a
we use
parametersOf
to detect if you send a
Bundle
and then trigger
k
it’s not clear why I need to send
Bundle
in parameters to receive
SavedStateHandle
in a
ViewModel
It’s like magic for
by ViewModel
a
if you want to handle states, we have to pass a default state
Android make it as
SavedStateHandle
if you check the base API, you can provide a base Bundle and make it inject as SavedStateHandle
the point here is to choose if we make a new keyword or if we make more conventional stuff like passing your default state
k
It isn't transparently in API. What will be if I want to pass Bundle as argument to ViewModel?
I prefer function that allow get save state handle inside viewModel { }
I am afraid that current way can confused users. Why you don't wanna to do special function for saved state handle for a ViewModel?
a
this is the case
k
I've saw the doc
a
if we want a specific API, we need either to add more options on current API
either add a new keyword/API
perhaps I can ask on a poll
k
It will be great