Skip to content

Commit

Permalink
Removed common stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
IVIanuu committed Feb 14, 2024
1 parent 8ade1af commit e22d827
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,16 @@ object UiScope
```
Then you can inject your class.
```kotlin
@Provide val uiScope = Scope<UiScope>()

fun onCreate() {
@Provide val uiScope = Scope<UiScope>()
val db = inject<Db>()
// use ui scoped dependency
val db = inject<Db>()
}

// dispose scope instance
fun onDestroy() {
uiScope.dispose()
}
```

Expand Down

0 comments on commit e22d827

Please sign in to comment.