maryvilledev / codesplainUI

Web app for breaking down and annotating Python 3 source code.
https://www.codesplain.io
GNU General Public License v3.0
2 stars 2 forks source link

Discuss adding batch middleware to Redux #523

Open solkaz opened 7 years ago

solkaz commented 7 years ago

See here for why this is a better idea

The TL;DR though is that every time we dispatch an action, we need to recalculate the new props and possibly re-render components. Instead, we can batch actions into a single dispatch, cutting down on the number of re-renders necessary