From 8a02c02ed89636a5811d76e541dd6f1995d152ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1?= Date: Tue, 18 Oct 2016 20:04:54 +0200 Subject: [PATCH] rename probe action from `init` to `probe` > The first time to probe for an initial state if you did not provide one, the second time when Store is instantiated https://gitter.im/ngrx/store?at=580662f3759f6d2436c41a32 --- src/ng2.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ng2.ts b/src/ng2.ts index 2932018..d2aab29 100644 --- a/src/ng2.ts +++ b/src/ng2.ts @@ -6,6 +6,8 @@ import { Store } from './store'; import { State } from './state'; import { combineReducers } from './utils'; +const INITIAL_PROBE_ACTION = '@ngrx/store/probe'; + export const INITIAL_REDUCER = new OpaqueToken('Token ngrx/store/reducer'); export const INITIAL_STATE = new OpaqueToken('Token ngrx/store/initial-state'); @@ -21,7 +23,7 @@ export function _initialReducerFactory(reducer) { export function _initialStateFactory(initialState, reducer) { if (!initialState) { - return reducer(undefined, { type: Dispatcher.INIT }); + return reducer(undefined, { type: INITIAL_PROBE_ACTION }); } return initialState; }