👋🏾 you can use the koinInject
function to inject any instance or koinViewModel
to inject a ViewModel
.
Instances injected via koinInject
will follow the lifecycle of the Composable they are used in, releasing the instance when the Composable is disposed. ViewModel
instances will adhere to the standard ViewModel
lifecycle.
To Get Started With Koin 👉🏾 https://insert-koin.io/
Top comments (0)