metamask-mobile
metamask-mobile copied to clipboard
Performance: Deep dive into understanding how to optimize Redux
Description
Deep dive into understanding how Redux functions + library API. Look into ways of optimizing while leveraging Redux. For example, normalizing states may prevent HOC re-renders.
Technical Details
- Read up on Redux performance docs
- Look into Redux batch API
- Look into normalizing store shape to prevent HOC re-renders
- See if memoizing selectors helps prevent re-renders.
- Redux toolkit may help us standardize on writing Redux
Acceptance Criteria
- TBD
Highly recommend Redux toolkit and its style guide to help formalize redux practices. We use it on the extension (in some areas, but all new slices are written with it). I'd recommend that we formalize this across all products as an engineering team so that we can document it in shared contributor docs