rename url reducer

This commit is contained in:
Colin Megill
2017-10-12 19:32:27 -07:00
parent 381e6fe927
commit d6b91176c4
3 changed files with 36 additions and 29 deletions
+5 -4
View File
@@ -1,17 +1,18 @@
import { combineReducers, createStore, applyMiddleware } from 'redux';
import updateURLMiddleware from "../middleware/updateURLMiddleware";
import cells from './cells';
import onURLchange from "./onURLchange";
import thunk from "redux-thunk";
import cells from "./cells";
import url from "./url";
const Reducer = combineReducers({
cells,
onURLchange,
url,
})
let store = createStore(
Reducer,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
applyMiddleware(updateURLMiddleware)
applyMiddleware(thunk, updateURLMiddleware)
);
export default store;