-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network Controller refactor to use the same selector #5529
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great work!
The controller packages have been updated to use the latest versions of each package. The only breaking change that affects mobile was the rename of the `provider` property of the network controller to `providerConfig`. Most changes in this commit relate to that change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I can't think of network instance that was missed. Do you think we should run this by QA? What do you think?
Thanks for the review! |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments! Mostly just simplifying the selectors
Socket Security Pull Request Report👍 No new dependency issues detected in pull request Pull request report summary
Bot CommandsTo ignore an alert, reply with a comment starting with Powered by socket.dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I completed a thorough regression on this PR. This is QA passed! 🌮 🌮
Description
Network controller needs to be refactored for be easier to upgrade on the future.
The controller packages have been updated to use the latest versions of each package. The only breaking change that affects mobile was the rename of the provider property of the network controller to providerConfig. Most changes in this commit relate to that change.
Proposed Solution
Now we use the reselect package of redux to memoise and improve performance, and also we have a dedicated file to export the Network controller attributes.
Test Cases
Code impact
High - Everything network related
Screenshots/Recordings
https://recordit.co/00LpJxmclu
Issue
Progresses #5509
Checklist