Skip to content

Commit

Permalink
Set up Redux-ORM and add an initial entities reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Oct 22, 2017
1 parent 8b90d93 commit efacb84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/orm.js
@@ -0,0 +1,5 @@
import {ORM} from "redux-orm";

const orm = new ORM();

export default orm;
8 changes: 8 additions & 0 deletions src/app/reducers/entitiesReducer.js
@@ -0,0 +1,8 @@
import {createReducer} from "common/utils/reducerUtils";

import orm from "app/orm"

const initialState = orm.getEmptyState()

export default createReducer(initialState, {
});
2 changes: 2 additions & 0 deletions src/app/reducers/rootReducer.js
@@ -1,9 +1,11 @@
import {combineReducers} from "redux";

import entitiesReducer from "./entitiesReducer";
import tabReducer from "features/tabs/tabsReducer";
import unitInfoReducer from "features/unitInfo/unitInfoReducer";

const rootReducer = combineReducers({
entities : entitiesReducer,
unitInfo : unitInfoReducer,
tabs : tabReducer,
});
Expand Down

0 comments on commit efacb84

Please sign in to comment.