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
There is currently no way to disallow tsyringe from overriding existing registrations for singletons. This would be really useful to prevent erroneously overriding existing registrations.
👍 I encountered this error as well while trying to override singleton in child container. Disallowing it and/or having it mentioned in the documentation may be a good idea.
There is currently no way to disallow tsyringe from overriding existing registrations for singletons. This would be really useful to prevent erroneously overriding existing registrations.
A good way to handle this is the SimpleInjector approach: https://simpleinjector.readthedocs.io/en/latest/howto.html#override-existing-registrations
The text was updated successfully, but these errors were encountered: