Optimizations
·
165 commits
to master
since this release
Before Optimization
- Any connected component using the
getTranslate
selector would re-render whenever any Redux action was dispatched.
After Optimization
- The
getTranslate
selector will only trigger a re-render if the translation data is updated using theaddTranslation
action creator, or if the languages or active language changes usingsetLanguages
orsetActiveLanguage
action creator.
NOTE: if your component is connected to other slices of state along with
getTranslate
a re-render will occur if any of the other connected state items change.