mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Merge pull request #14803 from nestjs/fix/infinite-loop-circular-ref
fix(core): infinite loop on broken circular reference
This commit is contained in:
@@ -126,7 +126,13 @@ export class InstanceWrapper<T = any> {
|
||||
const instancePerContext = this.values.get(contextId);
|
||||
return instancePerContext
|
||||
? instancePerContext
|
||||
: this.cloneStaticInstance(contextId);
|
||||
: contextId !== STATIC_CONTEXT
|
||||
? this.cloneStaticInstance(contextId)
|
||||
: {
|
||||
instance: null as T,
|
||||
isResolved: true,
|
||||
isPending: false,
|
||||
};
|
||||
}
|
||||
|
||||
public getInstanceByInquirerId(
|
||||
|
||||
Reference in New Issue
Block a user