Hey, i was wondering about the GetStarted section ...
# koin
a
Hey, i was wondering about the GetStarted section for KoinAndroidCompose, the sample code does not mention KoinContext, but i learned that you should use KoinContext() or KoinAndroidContext(). Is this just a little leftover todo to update the samples or is there any other reason why? My current understanding is, I can do something like this and be fine with it?
Copy code
@Composable
fun App() {
    // Set current Koin instance to Compose context
    KoinAndroidContext() {
        AppTheme{
            NavHost(...){
              ....
            }
        }
    }
}
p
Are you suggesting to adjust docs? If yes, I can provide this.
a
I was going through the sample app here https://github.com/InsertKoinIO/koin-getting-started/blob/main/android-compose/app/src/main/kotlin/org/koin/sample/MainActivity.kt and did not realize that there is also the compose specific section first. https://insert-koin.io/docs/reference/koin-compose/compose I guess it would be nice if the sample code could be updated.