注意,我使用dispatch()调用setStepPositionIndex()。如果我删除setStepPositionIndex()中的dispatch()调用(并保留dispatch(setStepPositionIndex()),同时显式返回其中的纯actionObj,我将期望使用/index'import * as Goal_Reducer from ".logEntry.err
但是,一旦我将函数置于redux状态,然后从那里调用它,它就不再工作了。以下是我所做的(非常简化)。const initialState = {testFunc: testFunc};...// somewhereHere I'm using redux-thunk to access redux state