Hi Everyone I am starting with Compose Multiplatfo...
# koin
a
Hi Everyone I am starting with Compose Multiplatform and added Koin to my common module. But I was wondering where to write the
startKoin
part. Is there any "Application" kind of thing in common module? Again, I just started today so I may not know what I am talking about. Please help.
j
There may be other ways of doing it but generally I believe you'll need to call this separately from the appropriate startup hook on each client....like following for example for a compose desktop client - it calls
initKoin
exposed from common module and that in turn calls
startKoin
https://github.com/joreilly/PeopleInSpace/blob/main/compose-desktop/src/main/kotlin/main.kt
🙏 2