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