When developing a Compose application......
Olwethu Pissot
Posted on October 29, 2024
👋🏾 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/
💖 💪 🙅 🚩
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.