Thierry Kh
07/17/2025, 12:48 PMval getSomeUseCase: GetSomeUseCase = getKoin().get()
Or it should be working but i need to fix something.arnaud.giuliani
07/17/2025, 1:10 PMkoinInject
, what is your context?Thierry Kh
07/17/2025, 1:27 PMonWasmReady {
stopKoin()
KoinHelper().doInitKoin()
ComposeViewport(
viewportContainerId = "ComposeTarget"
) {
val getLanguageUseCase: GetLanguageUseCase = koinInject()
I did something similar on JVM but with = getKoin().get()
instead and it's working. (Also working on Android with some by inject() outside of a composable context.)
But i'm starting to wonder if it's not related to the injection of the multiplatform settings lib. I added it only to the common module and i'm not sure that works for all platforms.
single<Settings> { Settings() }
Edit: looks like it's related to the settings injection.arnaud.giuliani
07/17/2025, 3:43 PMarnaud.giuliani
07/17/2025, 3:43 PMThierry Kh
07/19/2025, 10:19 PM