Is there a guide for using <Koin> with compose desktop? I’m trying to wrap my `application { }` with...
m
Is there a guide for using Koin with compose desktop? I’m trying to wrap my
application { }
within a
startKoin
block but it says this. Most info I can find seems to be for Android. Thanks.
Copy code
@Composable invocations can only happen from the context of a @Composable function
m
Thanks, that helped. I’ve managed to get it working (this is my Koin.kt init file). I can then inject a dependency elsewhere in my code like this:
val something = _koinInject<SomethingInterface>_()