status-js-desktop/app/reducers/index.js

13 lines
352 B
JavaScript
Raw Permalink Normal View History

2018-11-08 17:51:41 +00:00
// @flow
import { combineReducers } from 'redux';
import { connectRouter } from 'connected-react-router';
import counter from './counter';
export default function createRootReducer(history: {}) {
const routerReducer = connectRouter(history)(() => {});
return connectRouter(history)(
combineReducers({ router: routerReducer, counter })
);
}