view Model
Deprecated
Use the new Compose Multiplatform rememberViewModel instead from Kodein Framework Compose
Replace with
import org.kodein.di.compose.viewmodel
rememberViewModelGets an instance of a VM as an android ViewModel for the given tag.
VM generic will be preserved!
Return
An instance of VM.
Parameters
The type of the ViewModel to retrieve.
The bound tag, if any.
Throws
If no provider was found.
If the value construction triggered a dependency loop.
Deprecated
Use the new Compose Multiplatform rememberViewModel instead from Kodein Framework Compose
Replace with
import org.kodein.di.compose.viewmodel
rememberViewModelGets an instance of a VM as an android ViewModel for the given tag.
VM generic will be preserved!
Return
An instance of VM.
Parameters
The type of the ViewModel to retrieve.
The bound tag, if any.
The type of argument the returned factory takes.
The type of argument the returned factory takes.
A function that returns the argument that will be given to the factory when curried.
Throws
If no provider was found.
If the value construction triggered a dependency loop.