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