-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Bindings: Support for editing in block bindings #60719
Conversation
Size Change: +120 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
registry.batch( () => { | ||
updatedSetAttributes( newAttributes ); | ||
} ); | ||
} } |
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.
We could probably move batching into updatedSetAttributes
?
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.
Because now you're passing a new function as setAttributes
all the time.
if ( attribute in updateFunctions ) { | ||
updateFunctions[ attribute ]( value, nextAttributes ); | ||
} else { | ||
setAttributes( nextAttributes ); |
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 should move outside the for loop
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.
And remove the attribute keys not needed
WIP DESCRIPTION
What?
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast