-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: Add param to MetamaskController.privateSendUpdate for only sending pending patches
#36536
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
feat: Add param to MetamaskController.privateSendUpdate for only sending pending patches
#36536
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. |
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [8de082b]
UI Startup Metrics (1286 ± 63 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
8de082b to
d7f6f88
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [d7f6f88]
UI Startup Metrics (1215 ± 64 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
920a2f1 to
0727256
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [0727256]
UI Startup Metrics (1224 ± 56 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
… pending patches
0727256 to
a4c55a2
Compare
a4c55a2 to
e6106f0
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [e6106f0]
UI Startup Metrics (1245 ± 76 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
The
MetamaskController.privateSendUpdatemethod is currently not used anywhere, but is a useful wrapper for the uncommon scenario where a forced UI state update needs to be triggered in response to background events or actions. In the more usual case where a UI state update needs to be triggered in response to user actions,forceUpdateMetamaskStateis used.This commit adds a boolean flag parameter to
privateSendUpdatefor optionally triggering state updates only with pending patches, which is the default behavior of theupdateevent that is used by the method.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
privateSendUpdatenow accepts asendFullStateflag to either emit the full MetaMask state or just trigger an 'update' for pending patches, with updated JSDoc.Written by Cursor Bugbot for commit 0727256. This will update automatically on new commits. Configure here.