Skip to content

Commit

Permalink
fix(Store): Refactor parameter initialization in combineReducers for …
Browse files Browse the repository at this point in the history
…Closure
  • Loading branch information
ukrukarg authored and MikeRyanDev committed Sep 16, 2017
1 parent 274554b commit 5c60cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/store/src/reducer_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ReducerManager extends BehaviorSubject<ActionReducer<any, any>>
}: StoreFeature<any, any>) {
const reducer =
typeof reducers === 'function'
? (state = initialState, action: any) => reducers(state, action)
? (state: any, action: any) => reducers(state || initialState, action)
: createReducerFactory(reducerFactory, metaReducers)(
reducers,
initialState
Expand Down

0 comments on commit 5c60cba

Please sign in to comment.