kenberkeley / redux-simple-tutorial

Redux 简明教程。本教程深入浅出,配套入门、进阶源码解读以及文档注释丰富的 Demo 等一条龙服务

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

这里是不是有点不妥

ibufu opened this issue · comments

// 串联各个中间件,为各个中间件传入原 store.dispatch,见【降低逼格写法】的【锚点-2】
dispatch = compose(...chain)(store.dispatch)
应该是给最后的中间件传入原 store.dispatch。其它的中间件并没有使用原 store.dispatch。

衷心感谢!
f44785d