-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: Move foreground state properties from metamask
slice to appState
slice
#28703
Merged
MajorLift
merged 21 commits into
main
from
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
Jan 13, 2025
Merged
fix: Move foreground state properties from metamask
slice to appState
slice
#28703
MajorLift
merged 21 commits into
main
from
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
Jan 13, 2025
+369
−295
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
4 times, most recently
from
November 26, 2024 10:42
ae56b24
to
904d5b3
Compare
MajorLift
changed the title
Clean up
fix: Move foreground state properties from Nov 26, 2024
metamask
Redux slicemetamask
slice to appState
slice
MajorLift
added
team-tiger
Tiger team (for tech debt reduction + performance improvements)
type-tech-debt
Technical debt
and removed
team-wallet-framework
labels
Nov 26, 2024
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
November 27, 2024 10:50
904d5b3
to
a0e1a64
Compare
7 tasks
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
14 times, most recently
from
December 2, 2024 18:50
ffb2fea
to
36eb3e6
Compare
github-merge-queue
bot
removed this pull request from the merge queue due to failed status checks
Jan 10, 2025
MajorLift
dismissed stale reviews from NidhiKJha, jpuri, and DDDDDanica
via
January 10, 2025 17:51
9ce404a
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
January 10, 2025 17:53
9ce404a
to
43c0789
Compare
This comment was marked as resolved.
This comment was marked as resolved.
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
January 10, 2025 18:02
43c0789
to
e4d66e9
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
…e-ui-properties-to-appstate-slice
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
January 10, 2025 18:46
3159830
to
859ae89
Compare
Builds ready [859ae89]
Page Load Metrics (1768 ± 77 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
…e-ui-properties-to-appstate-slice
Builds ready [835ffa3]
Page Load Metrics (1577 ± 44 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
matthewwalsh0
approved these changes
Jan 13, 2025
DDDDDanica
approved these changes
Jan 13, 2025
EtherWizard33
approved these changes
Jan 13, 2025
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.
re-approving on behalf of @NidhiKJha
MajorLift
deleted the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
January 13, 2025 15:48
metamaskbot
added
the
release-12.11.0
Issue or pull request that will be included in release 12.11.0
label
Jan 13, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
release-12.11.0
Issue or pull request that will be included in release 12.11.0
team-extension-platform
team-tiger
Tiger team (for tech debt reduction + performance improvements)
type-tech-debt
Technical debt
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
metamask
Redux slice that are not part of background (i.e. controller-derived) state into theappState
slice.The affected state properties are as follows:
AppStateController
state have not been moved into theappState
slice, and will remain in the unflattenedmetamask
slice.AppStateController
state, but since all of them appear to neither require persistence beyond a given session, nor anonymization of PII, I'm opting to maintain the status quo and keep them out of controller state.isInitialized
property is not included, because it's derived from background state before the Redux store is instantiated, and is updated by thePatchStore
which supplies it directly to themetamask
slice.appState
slice selectors inui/selectors/selectors.js
together.Related issues
metamask
slice. #29601metamask
Redux slice #29600MetamaskController
stores #28723metamask
Redux slice and convert to TypeScript #28929Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist