Skip to content

Commit

Permalink
Merge pull request #1856 from wiryadev/patch-4
Browse files Browse the repository at this point in the history
update `rememberKoinModules` usage sample
  • Loading branch information
arnaudgiuliani authored Aug 27, 2024
2 parents 6a9a545 + 56795ea commit 57ba072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/reference/koin-compose/multiplatform.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Koin offers you a way to load specific modules for a given Composable function.
@Preview
fun MyComponentComposable() {
// load module at first call of this component
rememberKoinModules(myModule)
rememberKoinModules { listOf(myModule) }
}
```

Expand All @@ -110,4 +110,4 @@ The composable function `rememberKoinScope` and `KoinScope` allow to handle Koin

:::info
this API is still unstable for now
:::
:::

0 comments on commit 57ba072

Please sign in to comment.