Skip to content

Commit

Permalink
Update root reducer to wrap around combined reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Jan 13, 2017
1 parent 76e48af commit 9d6b443
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/reducers/rootReducer.js
@@ -1,18 +1,25 @@
import {combineReducers} from "redux";

import {reduceReducers} from "common/utils/reducerUtils";

import entitiesReducer from "./entitiesReducer";
import tabReducer from "features/tabs/tabReducer";
import unitInfoReducer from "features/unitInfo/unitInfoReducer";
import pilotsReducer from "features/pilots/pilotsReducer";
import mechsReducer from "features/mechs/mechsReducer";


const rootReducer = combineReducers({
const combinedReducer = combineReducers({
entities : entitiesReducer,
unitInfo : unitInfoReducer,
pilots : pilotsReducer,
mechs : mechsReducer,
tabs : tabReducer,
});


const rootReducer = reduceReducers(
combinedReducer,
);

export default rootReducer;

0 comments on commit 9d6b443

Please sign in to comment.