MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.17k stars 1.12k forks source link

chore: Optimize navigation entry file re renders #12353

Open tommasini opened 2 days ago

tommasini commented 2 days ago

Description

This draft was able to optimize re-renders of the navigation entry file (nav/app/index.js) from 5 to 2 re renders on cold app starts, on fresh installs, and when the user already has an account imported.

One issue was found when importing via SRP, after importing the user was stuck on the fox loader screen.

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

https://github.com/user-attachments/assets/52650c17-fb1a-4e3c-ac19-041bcc23a671

https://github.com/user-attachments/assets/1b4422cf-0935-4851-b1d5-f9f7e650d54a

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 2 days ago

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.

sonarcloud[bot] commented 2 days ago

Quality Gate Failed Quality Gate failed

Failed conditions
6.7% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud