dingo icon indicating copy to clipboard operation
dingo copied to clipboard

Warn on usage of ChildSingleton inside of singletons

Open tessig opened this issue 3 years ago • 0 comments

If a binding is declared as dingo.ChildSingleton, it has different instances for each area. If a dingo.Singleton gets a dingo.ChildSingleton via injection, it is unclear from which area the instance will come and can lead to unwanted behaviour.

We should declare this as misusage of the ChildSingleton pattern and at least warn the user.

tessig avatar May 07 '21 17:05 tessig