Warn about slow reducers in your Redux app.
npm install --save redux-log-slow-reducers
// Import all your reducers as usual;// 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.;const loggingReducers = ;// Everything else is plain redux stuff;const store = ;
Write tests for everything!