redux react-redux 中间件相关简介
redux-thunk:
1thunk1
https://www.cnblogs.com/wzndkj/p/10562563.html
是对dispatch的封装,异步逻辑放在action里。dispatch可接收对象,也可接收函数。接收函数时,先执行函数,再派发给store
2thunk2
https://www.jianshu.com/p/a27ab19d3657
将thunk传给...
转载
2019-07-10 14:54:51 ·
111 阅读 ·
0 评论