Reducers may not dispatch actions
or
Calling dispatch method immediately results in "Reducer may not dispatch actions"
一般解决办法,将要发送的action放在定时器里稍后执行
setTimeout(()=>{ action.dispatch(canvasActionCreators.playMusic("overAudio")) },1000)
具体原因还不是很清楚
参考github传送门
更多推荐
react redux Calling dispatch method immediately results in "Reducer may not
发布评论