Open leovigna opened 3 years ago
https://medium.com/swlh/react-state-batch-update-b1b61bd28cd2 https://react-redux.js.org/api/batch https://redux.js.org/faq/performance/
The Redux FAQ provides many different resources including suggesting the use of https://github.com/tshelburne/redux-batched-actions to batch actions.
Blog post on batching with redux-saga https://blog.isquaredsoftware.com/2020/01/blogged-answers-redux-batching-techniques/
Seems like https://github.com/manaflair/redux-batch might be the better solution to maintain batching at reducer level but also have access to individual actions in DevTools and sagas.
Discussion on improving Redux performance to minimize re-renders and batch actions.