When developing a Compose application......

olwethu_pissot_1ecfda93ab

Olwethu Pissot

Posted on October 29, 2024

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

💖 💪 🙅 🚩
olwethu_pissot_1ecfda93ab
Olwethu Pissot

Posted on October 29, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related