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
This seems to be wrong behavior, doesn't it? I expect dependencies can't propagate from bottom to top, but that's what's happening right now
Steps to Reproduce (for bugs)
@injectable()classB{}
@injectable()classA{constructor(publicreadonlyb: B){}}constroot=newContainer({defaultScope: "Singleton"});root.bind(A).toSelf();root.bind(B).toSelf();constchild=newContainer({defaultScope: "Singleton"});child.parent=root;child.bind(B).toSelf();consta=child.get(A);constbFromRoot=root.get(B);// Expected to be true, but it's false, because A created with B from child containerconsole.log("equal",bFromRoot===a.b);
Expected Behavior
bFromRoot equals a.b
Current Behavior
bFromRoot not equals a.b
Your Environment
Version used: 6.0.1
Also, I expect if I remove B provider from root, I will get an error, but I don't get one
The text was updated successfully, but these errors were encountered:
This seems to be wrong behavior, doesn't it? I expect dependencies can't propagate from bottom to top, but that's what's happening right now
Steps to Reproduce (for bugs)
Expected Behavior
bFromRoot equals a.b
Current Behavior
bFromRoot not equals a.b
Your Environment
Also, I expect if I remove B provider from root, I will get an error, but I don't get one
The text was updated successfully, but these errors were encountered: