I've a small question: Is this the correct workaro...
# koin
t
I've a small question: Is this the correct workaround for compose not yet being implemented in 3.0.0-alpha-4:
Copy code
@Composable
inline fun <reified T : ViewModel> viewModel(
    qualifier: Qualifier? = null,
    noinline parameters: ParametersDefinition? = null
): Lazy<T> {
    val owner = ViewModelStoreOwnerAmbient.current.viewModelStore
    return remember {
        KoinContextHandler.get().getViewModel(
            owner = { owner },
            qualifier = qualifier,
            parameters = parameters
        )
    }
}
a
yes for now, you can play with this
👍🏻 1