redux-reducer-timer

1.2.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i redux-reducer-timer

      Weekly Downloads

      301

      Version

      1.2.0

      License

      BSD-3-Clause

      Last publish

      Collaborators

      • commander-lol