diff --git a/modules/effects/src/effects_root_module.ts b/modules/effects/src/effects_root_module.ts index 1bf4dc219b..75415d8386 100644 --- a/modules/effects/src/effects_root_module.ts +++ b/modules/effects/src/effects_root_module.ts @@ -1,5 +1,6 @@ import { NgModule, Inject, Optional } from '@angular/core'; import { + createAction, StoreModule, Store, StoreRootModule, @@ -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 { diff --git a/modules/effects/src/index.ts b/modules/effects/src/index.ts index fca4c69999..8b0f731ee6 100644 --- a/modules/effects/src/index.ts +++ b/modules/effects/src/index.ts @@ -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,