From dd4f676247f824952eb9bf8632b70c3432c07ec3 Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Wed, 6 Nov 2019 13:57:12 -0600 Subject: [PATCH 1/5] ROOT_EFFECTS_INIT actions as ActionCreators https://github.com/ngrx/platform/issues/2218 --- modules/effects/src/effects_root_module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/effects/src/effects_root_module.ts b/modules/effects/src/effects_root_module.ts index 1bf4dc219b..cc79c3cf96 100644 --- a/modules/effects/src/effects_root_module.ts +++ b/modules/effects/src/effects_root_module.ts @@ -10,6 +10,7 @@ import { EffectSources } from './effect_sources'; import { ROOT_EFFECTS, _ROOT_EFFECTS_GUARD } from './tokens'; export const ROOT_EFFECTS_INIT = '@ngrx/effects/init'; +export const rootEffectsInitAction = createAction(ROOT_EFFECTS_INIT); @NgModule({}) export class EffectsRootModule { From 23e17989a9d214ca6cef3c1a52b7526c7da95cb3 Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Wed, 6 Nov 2019 14:02:15 -0600 Subject: [PATCH 2/5] fix: add missing import --- modules/effects/src/effects_root_module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/effects/src/effects_root_module.ts b/modules/effects/src/effects_root_module.ts index cc79c3cf96..15e5cd8786 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, From be3ed7d679ae3319b79b208de6ef7d8c15e0eb6c Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Wed, 6 Nov 2019 16:01:17 -0600 Subject: [PATCH 3/5] Update modules/effects/src/effects_root_module.ts Co-Authored-By: Brandon --- modules/effects/src/effects_root_module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/effects/src/effects_root_module.ts b/modules/effects/src/effects_root_module.ts index 15e5cd8786..75415d8386 100644 --- a/modules/effects/src/effects_root_module.ts +++ b/modules/effects/src/effects_root_module.ts @@ -11,7 +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 rootEffectsInitAction = createAction(ROOT_EFFECTS_INIT); +export const rootEffectsInit = createAction(ROOT_EFFECTS_INIT); @NgModule({}) export class EffectsRootModule { From 403e9b8a279c386a1582c096f0f36b9b64e8e624 Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Thu, 7 Nov 2019 00:36:29 -0600 Subject: [PATCH 4/5] expose rootEffectsInitAction --- modules/effects/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/effects/src/index.ts b/modules/effects/src/index.ts index fca4c69999..cd697f3021 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, + rootEffectsInitAction, +} from './effects_root_module'; export { act } from './act'; export { OnIdentifyEffects, From 92d81a745f633f3f755baa700780c643dc941be8 Mon Sep 17 00:00:00 2001 From: Sam Lin Date: Thu, 7 Nov 2019 08:54:54 -0600 Subject: [PATCH 5/5] Update modules/effects/src/index.ts Co-Authored-By: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> --- modules/effects/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/effects/src/index.ts b/modules/effects/src/index.ts index cd697f3021..8b0f731ee6 100644 --- a/modules/effects/src/index.ts +++ b/modules/effects/src/index.ts @@ -10,7 +10,7 @@ export { EffectSources } from './effect_sources'; export { EffectNotification } from './effect_notification'; export { ROOT_EFFECTS_INIT, - rootEffectsInitAction, + rootEffectsInit, } from './effects_root_module'; export { act } from './act'; export {