ironbar-persea/frontend/root/reducer.js
2018-09-03 02:03:23 -05:00

21 lines
514 B
JavaScript

import {combineReducers} from 'redux';
import {reducer as formReducer} from 'redux-form/immutable';
// import {pkgman} from '@truss/core';
// import {createReducer as createResourceReducer} from '../resource'
export default function createRootReducer() {
// dynamicReducers = pkgman.invokeFlat('perseaReducers').reduce(
// ((reducers, map) -> {reducers..., map...}), {}
// )
return combineReducers({
form: formReducer,
// resource: createResourceReducer()
// dynamicReducers...
});
}