hey, i am a bit lost. How you you open a second scope with koin?
For android an activity scope for example, something that will be closed again.
d
dknapp
04/23/2018, 3:13 PM
You can use the context(name = CONTEXT_NAME) {} block inside of your applicationContext {} block when you declare your injectable dependencies. if you then inject those dependencies into, for example, an activity, you call releaseContext(CONTEXT_NAME) in onDestroy() and it will release that context and create new instances of objects using that context the next time you inject from it.