Skip to content
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.

rename intial probe action from init to probe #256

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ng2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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;
}
Expand Down