redux-count-dispatch-middleware
A Redux middleware to count dispatch.
install
$ npm i redux-count-dispatch-middleware -S# or $ yarn add redux-count-dispatch-middleware
usage
/** * matcher * @param * @param * @return */const filter = type === 'noop' ? false : 'dispatched ' + type const initialState = {} const middlewares = const store = storestorestorestorestoredispatchCounter // { 'dispatched hello': 2, 'dispatched world': 1 }
development
$ git clone https://github.com/kamataryo/redux-count-dispatch-middleware.git$ cd redux-count-dispatch-middleware$ npm test