Nine Pedestrians Mesmerized
    Wondering what’s next for npm?Check out our public roadmap! »

    distributedlife-redux-log-slow-reducers

    1.1.0 • Public • Published

    redux-log-slow-reducers

    license npm version npm downloads Code Climate build

    Warn about slow reducers in your Redux app.

    Deprecated - No longer maintained

    My focus has left the node / react ecosystem and this module is no longer maintained.

    Thank you for your patience and using this module in the first place!

    Installation

    npm install --save redux-log-slow-reducers
    

    Usage

    // Import all your reducers as usual
    import * as reducers from './reducers';
     
    // And simply wrap it with the function exposed by this module
    //
    // Note: There is a optional second argument to logSlowReducers which allows you
    //       to define how slow a reducer must be to trigger a warning (in ms). The
    //       default value for this is currently 8ms, as this is half the time
    //       available in one frame to run at 60fps.
    import logSlowReducers from 'redux-log-slow-reducers';
    const loggingReducers = logSlowReducers(reducers);
     
    // Everything else is plain redux stuff
    import { createStore, combineReducers } from 'redux';
    const store = createStore(combineReducers(loggingReducers));

    Todo

    • Write tests for everything!

    Install

    npm i distributedlife-redux-log-slow-reducers

    DownloadsWeekly Downloads

    2

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar