Skip to content

Commit bf7f70c

Browse files
brandonrobertsMikeRyanDev
authored andcommitted
fix(Effects): Use factory provide for console (#288)
Closes #276
1 parent bbb7c99 commit bf7f70c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/effects/src/effects_module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class EffectsModule {
4040
},
4141
{
4242
provide: CONSOLE,
43-
useValue: console,
43+
useFactory: getConsole,
4444
},
4545
],
4646
};
@@ -50,3 +50,7 @@ export class EffectsModule {
5050
export function createSourceInstances(...instances: any[]) {
5151
return instances;
5252
}
53+
54+
export function getConsole() {
55+
return console;
56+
}

0 commit comments

Comments
 (0)