Skip to content

Commit 7d92d33

Browse files
committedFeb 10, 2023
fix(core): pass enhancer subtype for custom providers
1 parent a2b3e1b commit 7d92d33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/core/injector/module.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@ export class Module {
237237
host?: Type<T>,
238238
) {
239239
if (this.isCustomProvider(injectable)) {
240-
return this.addCustomProvider(injectable, this._injectables);
240+
return this.addCustomProvider(
241+
injectable,
242+
this._injectables,
243+
enhancerSubtype,
244+
);
241245
}
242246
let instanceWrapper = this.injectables.get(injectable);
243247
if (!instanceWrapper) {

0 commit comments

Comments
 (0)
Please sign in to comment.