diff --git a/docs/reference/koin-compose/compose.md b/docs/reference/koin-compose/compose.md index bcdad7b54..68d6aa22f 100644 --- a/docs/reference/koin-compose/compose.md +++ b/docs/reference/koin-compose/compose.md @@ -32,12 +32,16 @@ fun App() { } ``` -:::info +:::note Difference between `KoinAndroidContext` and `KoinContext`: - `KoinAndroidContext` is looking into current Android app context for Koin instance - `KoinContext` is looking into current GlobalContext for Koin instances ::: +:::info +If you get some `ClosedScopeException` from a Composable, either use `KoinContext` on your Composable or ensure to have proper Koin start configuration [with Android context](/docs/reference/koin-android/start.md#from-your-application-class) +::: + ### Compose Preview with Koin The `KoinApplication` function is also interesting to start dedicated context for preview. This can be also used to help with Compose preview: