DEV Community

Olwethu Pissot
Olwethu Pissot

Posted on

When developing a Compose application......

👋🏾 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/

Image description

Top comments (0)