-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Open
MajorLift
wants to merge
13
commits into
main
Choose a base branch
from
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
fix: Move foreground state properties from metamask
slice to appState
slice
#28703
MajorLift
wants to merge
13
commits into
main
from
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
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
mcmire
previously approved these changes
Dec 5, 2024
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 seems pretty straightforward to me. Nothing jumped out at me.
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
December 6, 2024 16:40
ee88f1e
to
58f01fe
Compare
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
10 times, most recently
from
December 6, 2024 17:50
d4384c5
to
b63607f
Compare
MajorLift
force-pushed
the
jongsun/perf/redux/241122-move-metamask-slice-ui-properties-to-appstate-slice
branch
from
December 6, 2024 18:04
b63607f
to
537fef8
Compare
Builds ready [537fef8]
Page Load Metrics (1944 ± 69 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
…e-ui-properties-to-appstate-slice
Builds ready [f2da87c]
Page Load Metrics (1917 ± 98 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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 leave 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 fromui/selectors/selectors.js
andui/app/app.ts
toui/app/selectors.ts
.Related issues
MetamaskController
stores (1/5) #28723metamask
Redux slice and convert to TypeScript (2/5) #28929metamask
Redux slice (5/5) #28776Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist