if you previously used `release()`to drop single d...
# koin
a
if you previously used `release()`to drop single definitions, better use now
scope
definition tied to the same scope Id
p
Is there an example for that case? I could not find one!
what we have right now is something like:
Copy code
val someModule = module("A) {
   single { Foo() }
   single { Bar() }
   single { Qux() }
}
and then just
release("A")
Not sure how I could do that with
scope
now
@arnaud.giuliani kind ping 🙂 Is there a way that the above is possible at all ?
a
Hey, just use it like below:
Copy code
val someModule = module("A) {
   scope("A") { Foo() }
   scope("A") { Bar() }
   scope("A") { Qux() }
}
use the
createScope("A")
, inject or get Foo Bar and close scope “A”
p
So my understanding is that "A" is not a unique identifier, more like a scope TAG correct? If so could you please specify that in the documentation? 😛
Cause it seemed to me that it is something unique!