1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-27 22:57:09 -04:00

New: Many UI Updates and Performance Tweaks

This commit is contained in:
Qstick
2019-04-12 23:25:58 -04:00
parent b24a40797f
commit 6275737ced
389 changed files with 7961 additions and 5635 deletions
@@ -0,0 +1,23 @@
import { combineReducers } from 'redux';
import { enableBatching } from 'redux-batched-actions';
import actions from 'Store/Actions';
import { connectRouter } from 'connected-react-router';
const defaultState = {};
const reducers = {};
actions.forEach((action) => {
const section = action.section;
defaultState[section] = action.defaultState;
reducers[section] = action.reducers;
});
export { defaultState };
export default function(history) {
return enableBatching(combineReducers({
...reducers,
router: connectRouter(history)
}));
}