Redux TypeError:dispatch不是wrap(spread.js:25)中indexAction.js:66处的函数

Redux TypeError:dispatch不是wrap(spread.js:25)中indexAction.js:66处的函数,redux,react-redux,Redux,React Redux,我应该如何解决此问题?您需要设置redux thunk,以便异步调度操作。有关更多信息,请访问redux thunk文档 ... import thunk from 'redux-thunk'; ... const store = createStore(novelReducer, undefined, compose( applyMiddleware(thunk, routerMiddleware(history)), window.__REDUX_DEVTOOLS_EXTE


我应该如何解决此问题?

您需要设置
redux thunk
,以便异步调度操作。有关更多信息,请访问
redux thunk
文档

...
import thunk from 'redux-thunk';
...

const store = createStore(novelReducer, undefined, compose(
    applyMiddleware(thunk, routerMiddleware(history)),
    window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
))
...

请在问题中添加您的代码,以便于帮助您。您链接的页面加载速度非常慢。请在我们重新加载后,像这样重复“const history=createHistory();/”const store=createStore(//novelReducer,//applyMiddleware(thunk)//);const store=createStore(novelReducer,未定义,compose(applyMiddleware(thunk,routerMiddleware(history)),window.\uuu REDUX\u DEVTOOLS\u EXTENSION\uuuux&&window.\uu REDUX\u DEVTOOLS\u EXTENSION())`问题也存在