Currently, in order to make the code more declarative, we use multiple dispatches when realistically it could be grouped together in one big dispatch. However, declarative code makes it easier to understand, so we should not make one big dispatch, rather we should look into middleware that can batch redux updates together to avoid rerendering components every time dispatch is called.
Currently, in order to make the code more declarative, we use multiple dispatches when realistically it could be grouped together in one big dispatch. However, declarative code makes it easier to understand, so we should not make one big dispatch, rather we should look into middleware that can batch redux updates together to avoid rerendering components every time dispatch is called.