Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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