did you checked: <https://beta.insert-koin.io/docs...
# koin
k
This is almost what I want: "Any Activity or Fragment can use directly the scope API: createScope(), getScope() and deleteScope()" Except I want to use it in the module DSL.
a
inside scoped definition lambda, you can use
getCurrentScope()
k
thanks! 🙂
one more question...if you're bindScope'ing in an Activity, does it deleteScope() automatically or do you have to do it in the onDestroy() of the Activity?
a
bindScope follow your activity lifecycle - destroyed on onDestroy