owlprotocol / web3-redux

Web3 Redux Library
6 stars 1 forks source link

Discussion: Redux Performance Improvements #45

Open leovigna opened 3 years ago

leovigna commented 3 years ago

Discussion on improving Redux performance to minimize re-renders and batch actions.

leovigna commented 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.

leovigna commented 3 years ago

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.