Hey everyone if i have a module ```scope(named("t...
# koin
v
Hey everyone if i have a module
Copy code
scope(named("test")) {
    scoped { Child() }
}

single {
    Parent(child = getScope(...).get())
}
If i now clear test scope using
getKoin().deleteScope()
, and inject Parent, will it create new instance of Parent, with a new instance of child or will Parent instance remain same??
1
a
you shouldn't mix scope with singleton like that. Your scope have a shorter lifetime in theory
it will depend then on the instance you create
v
@arnaud.giuliani So, all classes which require the instance of
Child
in this case, has to be in the same scope ?
a
yeah compatible lifetime - scope