mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-25 07:28: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 cells from './cells'
|
||||
import { combineReducers, createStore, applyMiddleware } from 'redux';
|
||||
import updateURLMiddleware from "../middleware/updateURLMiddleware";
|
||||
import cells from './cells';
|
||||
import onURLchange from "./onURLchange";
|
||||
|
||||
const Reducer = combineReducers({
|
||||
cells,
|
||||
onURLchange,
|
||||
})
|
||||
|
||||
let store = createStore(Reducer);
|
||||
let store = createStore(
|
||||
Reducer,
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
|
||||
applyMiddleware(updateURLMiddleware)
|
||||
);
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user