Were there any changes to state viewmodel in 3.1.0...
# koin
m
Were there any changes to state viewmodel in 3.1.0? Since upgrading the following has started crashing 😞
Copy code
val vm : MyVm = getStateViewModel(state = { bundleOf(Pair("key", value)) })
No definition found for class:‘androidx.lifecycle.SavedStateHandle’. Check your definitions!
Changing to
Copy code
viewModel { (handle: SavedStateHandle) ->
and passing the handle seems to work. Wasnt necessary on 3.0.1 🤔 Also now its deprecated, but I guess thats the same as this https://kotlinlang.slack.com/archives/C67HDJZ2N/p1623405734074000
a
yep, perhaps missing default empty state 🤔