Permalink
Browse files

Add an "editingEntities" state slice to store draft data

  • Loading branch information...
markerikson committed Jan 22, 2017
1 parent d5da05b commit 925d07796320c1000ca18d4520eeb54b3cb6ebc9
Showing with 9 additions and 0 deletions.
  1. +7 −0 src/app/reducers/editingEntitiesReducer.js
  2. +2 −0 src/app/reducers/rootReducer.js
@@ -0,0 +1,7 @@
import {createReducer} from "common/utils/reducerUtils";
import schema from "app/schema";
const defaultEditingEntities = schema.getDefaultState();
export default createReducer(defaultEditingEntities, {
});
@@ -3,6 +3,7 @@ import {combineReducers} from "redux";
import {reduceReducers} from "common/utils/reducerUtils";
import entitiesReducer from "./entitiesReducer";
import editingEntitiesReducer from "./editingEntitiesReducer";
import tabReducer from "features/tabs/tabReducer";
import unitInfoReducer from "features/unitInfo/unitInfoReducer";
import pilotsReducer from "features/pilots/pilotsReducer";
@@ -13,6 +14,7 @@ import entityCrudReducer from "features/entities/entityReducer";
const combinedReducer = combineReducers({
entities : entitiesReducer,
editingEntities : editingEntitiesReducer,
unitInfo : unitInfoReducer,
pilots : pilotsReducer,
mechs : mechsReducer,

0 comments on commit 925d077

Please sign in to comment.