redux-batched-updates
Batch React updates that occur as a result of Redux dispatches, to prevent cascading renders. See reduxjs/redux#125 for more details.
npm install --save redux-batched-updates
Usage
// Use as higher-order store
import { batchedUpdates } from 'redux-batched-updates';
const store = batchedUpdates(createStore)(reducer, intialState);
// Or as middleware
import { batchedUpdatesMiddleware } from 'redux-batched-updates';
const m = composeMiddleware(thunk, promise, batchedUpdatesMiddleware);
const store = applyMiddleware(m)(createStore)(reducer, initialState)