lagom
lagom copied to clipboard
Singletons in ContextContainer have unclear scoping
For the ContextContainer the resolved instance will persist in the singleton even after exit has been called. This doesn't really make sense.
It's only an issue in the ContextContainer itself not the fastapi integration as the fastapi integration has one container per request and no re-use.