Skip to content

Commit

Permalink
add note about createScope default instance
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 16, 2024
1 parent 11a4fbb commit a92770c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/reference/koin-core/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ From a `Koin` instance, you can access:
- `getScope(id : ScopeID)` - retrieve a previously created scope with given id
- `getOrCreateScope(id : ScopeID, scopeName : Qualifier)` - create or retrieve if already created, the closed scope instance with given id and scopeName

:::note
By default calling `createScope` on an object, doesn't pass the "source" of the scope. You need to pass it as parameters: `T.createScope(<source>)`
:::

### Scope Component: Associate a scope to a component [2.2.0]

Expand Down

0 comments on commit a92770c

Please sign in to comment.