showing results for - "batch react redux"
Laura
30 Jul 2018
1import { batch } from 'react-redux'
2
3function myThunk() {
4  return (dispatch, getState) => {
5    // should only result in one combined re-render, not two
6    batch(() => {
7      dispatch(increment())
8      dispatch(increment())
9    })
10  }
11}
12
Kelian
05 Jul 2019
1import { batch } from 'react-redux'
2