mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 04:48:12 +08:00
add custom middleware to index
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import { combineReducers, createStore, applyMiddleware } from 'redux';
|
import { combineReducers, createStore, applyMiddleware } from 'redux';
|
||||||
import updateURLMiddleware from "../middleware/updateURLMiddleware";
|
import updateURLMiddleware from "../middleware/updateURLMiddleware";
|
||||||
|
import updateCellSelectionMiddleware from "../middleware/updateCellSelectionMiddleware";
|
||||||
|
|
||||||
import thunk from "redux-thunk";
|
import thunk from "redux-thunk";
|
||||||
|
|
||||||
import initialize from "./initialize";
|
import initialize from "./initialize";
|
||||||
@@ -19,7 +21,11 @@ const Reducer = combineReducers({
|
|||||||
let store = createStore(
|
let store = createStore(
|
||||||
Reducer,
|
Reducer,
|
||||||
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
|
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
|
||||||
applyMiddleware(thunk, updateURLMiddleware)
|
applyMiddleware(
|
||||||
|
thunk,
|
||||||
|
updateURLMiddleware,
|
||||||
|
updateCellSelectionMiddleware
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
export default store;
|
export default store;
|
||||||
|
|||||||
Reference in New Issue
Block a user