Undoing/redoing batches of actions at a time
import { batchGroupBy } from './batchGroupBy'
const mapDispatchToProps = (dispatch, ownProps) => ({
onClick: (evt) => {
batchGroupBy.start()
dispatch(action1)
dispatch(action2)
dispatch(action3)
batchGroupBy.end()
}
});Last updated
Was this helpful?