Skip to content

Commit de9a590

Browse files
maxisambrandonroberts
authored andcommittedNov 7, 2019
fix(effects): add action creator for root effects init action (#2219)
Closes #2218
1 parent fe1dfc1 commit de9a590

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎modules/effects/src/effects_root_module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule, Inject, Optional } from '@angular/core';
22
import {
3+
createAction,
34
StoreModule,
45
Store,
56
StoreRootModule,
@@ -10,6 +11,7 @@ import { EffectSources } from './effect_sources';
1011
import { ROOT_EFFECTS, _ROOT_EFFECTS_GUARD } from './tokens';
1112

1213
export const ROOT_EFFECTS_INIT = '@ngrx/effects/init';
14+
export const rootEffectsInit = createAction(ROOT_EFFECTS_INIT);
1315

1416
@NgModule({})
1517
export class EffectsRootModule {

‎modules/effects/src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export { Actions, ofType } from './actions';
88
export { EffectsModule } from './effects_module';
99
export { EffectSources } from './effect_sources';
1010
export { EffectNotification } from './effect_notification';
11-
export { ROOT_EFFECTS_INIT } from './effects_root_module';
11+
export {
12+
ROOT_EFFECTS_INIT,
13+
rootEffectsInit,
14+
} from './effects_root_module';
1215
export { act } from './act';
1316
export {
1417
OnIdentifyEffects,

0 commit comments

Comments
 (0)
Please sign in to comment.