摘要: 为什么会有redux-saga 中间件用过redux-thunk,也用过redux-promise-middleware,原理都很简单。 thunk就是简单的action作为函数,在action进行异步操作,发出新的action。 而promise只是在action中的payload作为一个prom 阅读全文
posted @ 2020-04-15 21:26 又回到了起点 阅读(514) 评论(0) 推荐(0) 编辑