https://kotlinlang.org logo
#compose
Title
# compose
t

Tony Kazanjian

02/12/2021, 1:39 AM
Anybody using
koin.androidx.compose
for viewmodel injection into their composables? There is a solution for compile errors for compose alpha 12 here (https://github.com/InsertKoinIO/koin/issues/1006), but wondering if others have seen the same runtime errors and if there are workarounds
i

Ian Lake

02/12/2021, 2:27 AM
There were a lot of breaking API changes in alpha12 (it is alpha, so not unexpected). You'll probably need to wait until there's a snapshot/release built against alpha12
t

Tony Kazanjian

02/12/2021, 2:55 AM
For sure, thanks Ian. I might actually explore Hilt with this project. Given you're "on the inside", do you know if that library keeps up a better pace with alpha releases than any third-party DI like Koin?
i

Ian Lake

02/12/2021, 3:43 AM
Generally, any Google library that has a direct dependency on Compose get released the same day that Compose version comes out
That being said, once Compose goes beta and gains API stability, a lot of these incompatibility issues go away, so some of what you're experiencing is a shorter term issue and shouldn't necessarily affect what libraries you use
💯 3
2 Views