hey, i am a bit lost. How you you open a second sc...
# koin
d
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
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.
If I’m understanding your question correctly.