在过去的几天里,我一直在搜索无数个小时,试图自己解决它,但无济于事......我有一个非常简单的 thunk,但从未调用过实际的调度......
这是动作创建者:
const startSurvey = () => {
console.log("inside startSurvey thunk")
return (dispatch, getState) => {
console.log("inside startSurvey thunk func")
}
}
我能看到的第一个日志,从来没有第二个。我的商店设置正确(我认为)
export const configureStore = (onComplete: ?() => void) => {
return createStore(rootReducer, applyMiddleware(thunk))
}