You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when you try to retrieve the ViewModel via Kodein rememberViewModel it will throw NotFoundException due to it expects the args passed as a Function1<*, *>
org.kodein.di.DI$NotFoundException: No binding found for SomeViewModelModule, with argument Function1<*, *>
at org.kodein.di.internal.DIContainerImpl.factory(DIContainerImpl.kt:208)
at org.kodein.di.DIContainer$DefaultImpls.factory$default(DIContainer.kt:32)
at org.kodein.di.internal.DirectDIBaseImpl.Factory(DirectDIImpl.kt:18)
at org.kodein.di.compose.android.KodeinViewModelScopedFactory.create(KodeinViewModelScopedFactory.kt:18)
at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:187)
at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:153)
at androidx.lifecycle.ViewModelLazy.getValue(ViewModelLazy.kt:53)
at androidx.lifecycle.ViewModelLazy.getValue(ViewModelLazy.kt:35)
...
we previously used our own simple wrapper to retrieve the ViewModel
....and apparently, it doesn't work well with Pair and Triple either. am I missing something here? Is it expected to retrieve an arg with primitive type only?
says we have a ViewModel and a function as the argument.
when you try to retrieve the ViewModel via Kodein
rememberViewModel
it will throwNotFoundException
due to it expects the args passed as aFunction1<*, *>
we previously used our own simple wrapper to retrieve the ViewModel
The text was updated successfully, but these errors were encountered: