From e22d8272c4d11b4456e91edfd521829bbc879fd3 Mon Sep 17 00:00:00 2001 From: manu Date: Wed, 14 Feb 2024 13:04:06 +0100 Subject: [PATCH] Removed common stuff --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e91e4ea0..de272731e 100644 --- a/README.md +++ b/README.md @@ -91,9 +91,16 @@ object UiScope ``` Then you can inject your class. ```kotlin +@Provide val uiScope = Scope() + fun onCreate() { - @Provide val uiScope = Scope() - val db = inject() + // use ui scoped dependency + val db = inject() +} + +// dispose scope instance +fun onDestroy() { + uiScope.dispose() } ```