Skip to content

Commit

Permalink
doc update - lazyModule warning
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 18, 2024
1 parent 8e998c2 commit 045410d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/reference/koin-core/lazy-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,21 @@ koin.runOnKoinStarted { koin ->

:::info
Default dispatcher for coroutines engine is `Dispatchers.Default`
:::

### Limitation - Mixing Modules/Lazy Modules

For now we advise to avoid mixing modules & lazy modules, in the startup. Avoid having `mainModule` requiring dependency in `lazyReporter`.

```kotlin
startKoin {
androidLogger()
androidContext(this@TestApp)
modules(mainModule)
lazyModules(lazyReporter)
}
```

:::warning
For now Koin doesn't check if your module depends on a lazy modules
:::

0 comments on commit 045410d

Please sign in to comment.