Built with hooks and includes new features like batch
import { batch } from "react-redux";
function myThunk() {
return (dispatch, getState) => {
// should only result in one combined re-render, not two
batch(() => {
dispatch(increment());
dispatch(increment());
})
}
}
This release has undergone extensive performance benchmarking, and we’re confident that it’s the fastest version of React-Redux yet!