Permalink
Browse files

Create a Redux-ORM Schema and the initial entities reducer

  • Loading branch information...
markerikson committed Dec 11, 2016
1 parent 3ccddf1 commit 1e48ca2a59acbdc3f1203e231e6637a619893345
Showing with 17 additions and 0 deletions.
  1. +8 −0 src/app/reducers/entitiesReducer.js
  2. +3 −0 src/app/reducers/rootReducer.js
  3. +1 −0 src/app/schema/index.js
  4. +5 −0 src/app/schema/schema.js
@@ -0,0 +1,8 @@
import {createReducer} from "common/utils/reducerUtils";
import schema from "app/schema"
const initialState = schema.getDefaultState();
export default createReducer(initialState, {
});
@@ -1,9 +1,12 @@
import {combineReducers} from "redux";
import entitiesReducer from "./entitiesReducer";
import tabReducer from "features/tabs/tabReducer";
import unitInfoReducer from "features/unitInfo/unitInfoReducer";
const rootReducer = combineReducers({
entities : entitiesReducer,
unitInfo : unitInfoReducer,
tabs : tabReducer,
});
View
@@ -0,0 +1 @@
export {default} from "./schema";
View
@@ -0,0 +1,5 @@
import {Schema} from "redux-orm";
const schema = new Schema();
export default schema;

0 comments on commit 1e48ca2

Please sign in to comment.