refactor: Consolidate Token screen asset selectors#13985
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
…ask/metamask-mobile into chore/consolidate-token-list-loops
|
|
|
nickewansmith
left a comment
There was a problem hiding this comment.
Staking changes lgtm
|
|
|



Description
From Wallet Screen → Tokens component, we are looping through the tokens from state several times in memory. This is not efficient. This PR introduces some improvements to the
Tokenscomponent, specifically:isPortfolioViewEnabledchecks. Confirmed that we can begin to remove these.Next step will be to refactor
calculateFiatBalancesRelated issues
Fixes: #13995
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-03-13.at.8.40.58.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist