lore-hook-redux

Generates the Redux Store from all the reducers

rootReducer

Combine all reducers into a single reducer function, which will be used by the Redux store. If there are no reducers, returns an empty function to prevent Redux from throwing an error.

http://redux.js.org/docs/api/combineReducers.html

rootReducer: function(reducers) {
  var hasReducers = Object.keys(reducers).length > 0;
  return hasReducers ? Redux.combineReducers(reducers) : function() {};
}