Skip to content

Commit

Permalink
fix(effects): add action creator for root effects init action (#2219)
Browse files Browse the repository at this point in the history
Closes #2218
  • Loading branch information
maxisam authored and brandonroberts committed Nov 7, 2019
1 parent fe1dfc1 commit de9a590
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/effects/src/effects_root_module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { NgModule, Inject, Optional } from '@angular/core';
import {
createAction,
StoreModule,
Store,
StoreRootModule,
Expand All @@ -10,6 +11,7 @@ import { EffectSources } from './effect_sources';
import { ROOT_EFFECTS, _ROOT_EFFECTS_GUARD } from './tokens';

export const ROOT_EFFECTS_INIT = '@ngrx/effects/init';
export const rootEffectsInit = createAction(ROOT_EFFECTS_INIT);

@NgModule({})
export class EffectsRootModule {
Expand Down
5 changes: 4 additions & 1 deletion modules/effects/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export { Actions, ofType } from './actions';
export { EffectsModule } from './effects_module';
export { EffectSources } from './effect_sources';
export { EffectNotification } from './effect_notification';
export { ROOT_EFFECTS_INIT } from './effects_root_module';
export {
ROOT_EFFECTS_INIT,
rootEffectsInit,
} from './effects_root_module';
export { act } from './act';
export {
OnIdentifyEffects,
Expand Down

0 comments on commit de9a590

Please sign in to comment.