redux-reducer-timer
v1.2.0
Published
Timer middleware for printing out the time it takes to run your stuff
Downloads
1,278
Readme
Redux Reducer Timer
Time your redux reducers
Install
npm i --save redux-reducer-timer
Quick start
var createTimer = require('redux-reducer-timer')
var { createStore, applyMiddleware } = require('redux')
var reducers = require('./path/to/reducers.js')
var store = createStore(
reducers,
applyMiddleware(
createTimer({predicate: () => true}), // Put timer before any middleware you want to include in the timing
/* other middleware goes here */
)
)
module.exports = store