We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c48182 commit 5922e7eCopy full SHA for 5922e7e
1 file changed
packages/core/injector/injector.ts
@@ -588,13 +588,8 @@ export class Injector {
588
const isInContext = isStatic || isInRequestScope || isLazyTransient;
589
590
if (isNil(inject) && isInContext) {
591
- const targetInstance = wrapper.getInstanceByContextId(
592
- contextId,
593
- inquirerId,
594
- );
595
-
596
- targetInstance.instance = wrapper.forwardRef
597
- ? Object.assign(targetInstance.instance, new metatype(...instances))
+ instanceHost.instance = wrapper.forwardRef
+ ? Object.assign(instanceHost.instance, new metatype(...instances))
598
: new metatype(...instances);
599
} else if (isInContext) {
600
const factoryReturnValue = ((targetMetatype.metatype as any) as Function)(
0 commit comments