mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 04:08:11 +08:00
add devtools and url parsing middleware to reducer
This commit is contained in:
+10
-3
@@ -1,10 +1,17 @@
|
|||||||
import { combineReducers, createStore } from 'redux'
|
import { combineReducers, createStore, applyMiddleware } from 'redux';
|
||||||
import cells from './cells'
|
import updateURLMiddleware from "../middleware/updateURLMiddleware";
|
||||||
|
import cells from './cells';
|
||||||
|
import onURLchange from "./onURLchange";
|
||||||
|
|
||||||
const Reducer = combineReducers({
|
const Reducer = combineReducers({
|
||||||
cells,
|
cells,
|
||||||
|
onURLchange,
|
||||||
})
|
})
|
||||||
|
|
||||||
let store = createStore(Reducer);
|
let store = createStore(
|
||||||
|
Reducer,
|
||||||
|
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
|
||||||
|
applyMiddleware(updateURLMiddleware)
|
||||||
|
);
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
|||||||
Reference in New Issue
Block a user