2017年4月18日

redux怎么自定义一个中间件

摘要: 怎么自定义一个中间件呢? 根据 redux 文档,中间件的签名如下: ({ getState, dispatch }) => next => action根据上文的 applyMiddleware 源码,每个中间件接收 getState & dispatch 作为参数,并返回一个函数,该函数会被传入 阅读全文

posted @ 2017-04-18 08:59 飞哥100 阅读(262) 评论(0) 推荐(0)

导航