We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6225088 commit 73b4659Copy full SHA for 73b4659
packages/common/src/config/ModuleContainer.ts
@@ -4,7 +4,7 @@ import {
4
DependencyContainer,
5
Frequency,
6
InjectionToken,
7
- instancePerContainerCachingFactory,
+ instanceCachingFactory,
8
isClassProvider,
9
isFactoryProvider,
10
isTokenProvider,
@@ -404,9 +404,7 @@ export class ModuleContainer<
404
// this enables us to have a singletoned factory
405
// that returns the same instance for each resolve
406
this.container.register(key, {
407
- useFactory: instancePerContainerCachingFactory(
408
- declaration.useFactory
409
- ),
+ useFactory: instanceCachingFactory(declaration.useFactory),
410
});
411
} else if (isClassProvider(declaration)) {
412
this.container.register(key, declaration, {
0 commit comments