Hi folks. I just upgraded to 3.1.0 and I am notici...
# koin
a
Hi folks. I just upgraded to 3.1.0 and I am noticing something odd. The following code fails to compile
Copy code
viewModel(override = true) { SearchScreenViewModel(get()) }
I am guessing that the override param was removed from the viewModel call (release notes mention something about it s being a global option). Could someone explain as to what that means and how would we configure something like this in the new system. On a side note the documentation for the function still mentioned override as a accepted param (most likely an oversight) but thought you might want to know 🙂
j
I ran into this as well. As the release notes indicate, the
override
module option has been moved to a global option in
KoinApplication
. It defaults to
true
and can be changed by setting it on your
KoinApplication
instance.
Will need some documentation updates in the Modules and Start Koin sections to reflect these API changes.