When I play with androidx-samples, I found activit...
# koin
b
When I play with androidx-samples, I found activityRetainedScope inject same object instance for different activity instances of same activity class.
Copy code
// code from androidx-sample

val mvpModule = module {
    factory { (id: String) -> FactoryPresenter(id, get()) }

    scope<MVPActivity> {
        scoped { (id: String) -> ScopedPresenter(id, get()) }
    }
}

class MVPActivity : AppCompatActivity(R.layout.mvp_activity), AndroidScopeComponent {

    override val scope: Scope by activityRetainedScope()

    // Inject presenter as Factory
    val factoryPresenter: FactoryPresenter by inject { parametersOf(ID) }

    // Inject presenter from MVPActivity's scope
    val scopedPresenter: ScopedPresenter by inject { parametersOf(ID) }
}
multiple MVPActivity instances inject same scopedPresenter instance, is this the expected behavior?