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
As you can see, it works for the first example: A1 is pre-resolved and A2 is registered as singleton (synchronously), which is correct.
However, for the second example, it does not work. Because B1 (which IS preresolved) now depends on B0 (which is NOT), B2 is registered using singletonAsync (asynchronously). In my opinion, this is wrong, as since B1 is still pre-resolved, B2 can be synchronous and should be, because it does not know or care about B0.
The text was updated successfully, but these errors were encountered:
I face this problem , too.
I hope it gets fixed soon.
It works correctly in a previous case where there is no past dependency that the singleton needs.
Consider the following code:
which generates:
As you can see, it works for the first example: A1 is pre-resolved and A2 is registered as
singleton
(synchronously), which is correct.However, for the second example, it does not work. Because B1 (which IS preresolved) now depends on B0 (which is NOT), B2 is registered using
singletonAsync
(asynchronously). In my opinion, this is wrong, as since B1 is still pre-resolved, B2 can be synchronous and should be, because it does not know or care about B0.The text was updated successfully, but these errors were encountered: