You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a session mechanism, where the user can logout and login at any moment with other account. In order to avoid having inconsistent information, I wanted to restart some instances within a module that I like this:
val sessionRepositories = module {
single { UserSessionRepository(androidApplication(), get(), get()) } bind AbstractSessionRepository::class
}
And for what I know, this will drop the previous UserSessionRepository instance and will create a new one, creating a leak with the previous UserSessionRepository. Therefore, I tried to do:
MyApplication.getInstance().stopKoinInstance() //calls GlobalContext.stop()
MyApplication.getInstance().startKoinInstance() //restarts all instances, just to see if there was something with load and unload
And this keeps leaking, is there a way, where I can really restart my instances
The text was updated successfully, but these errors were encountered:
I'm trying to implement a session mechanism, where the user can logout and login at any moment with other account. In order to avoid having inconsistent information, I wanted to restart some instances within a module that I like this:
To this I tried to do:
And for what I know, this will drop the previous UserSessionRepository instance and will create a new one, creating a leak with the previous UserSessionRepository. Therefore, I tried to do:
And this keeps leaking, is there a way, where I can really restart my instances
The text was updated successfully, but these errors were encountered: