Open ankushg opened 2 years ago
Yep, something like with weak references to garbage it if nobody has nay reference on it 🤔
Any plans on when this will get added? It's been 1y+
Swinject already has this feature as well and I believe it is a must-have, otherwise we would need to be hacking around scopes.
yes, it's something that need a bit of rework for internal engine
Are there any updates on this?
It's great that we have some flexibility between
factory
andsingleton
!At the same time, we have many classes that could be reused if they already exist, without a strong need to only have one single instance.
singleton
, we find ourselves wasting memory by retaining such classes far beyond when we need themfactory
, we find ourselves wasting memory by creating too many simultaneous instances of classes that could have be sharedIt would be great if we could tell Koin to
This is similar to Dagger's
@Reusable
scope.