-
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 Editor: Refactor the block-editor parents state to use maps instead of objects. #46225
Conversation
Size Change: +23 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
f192f44
to
8ad5aa0
Compare
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 checked the parents
changes as the other ones have been merged and the order
will be soon. Looks good, thanks Riad!
5f2ae6d
to
cab111a
Compare
I think this PR had an unintended side effect of making it impossible to select the inner blocks of a contentOnly locked pattern. Here's a sample pattern:
I found this PR as the "breaking" one purely by shotgun debugging, checking out commits, and specifically the behavior broke between these two commits: Before the topmost of those two commits, it worked like this ( After that top commit, it's now broken, like this: |
Thanks for catching that, fix in #46494 |
Hey @youknowriad. 👋🏻 I reviewed this PR and the related ones listed in the description while exploring typing performance in the native mobile editor. At a high-level, do you consider the effort to use |
Hey @dcalhoun yeah at the moment, I think this is "done" from my point of view. I do think there's more we can do in the reducer but I remember doing more of these changes in some of parts of the reducer and not measuring the perf gains like I did for the merged PRs. So yeah, no changes coming in this area from me, but let's keep an eye for potential improvements. |
Some time ago I created a draft PR that migrates the |
Similar to #46204 #46221 and #46146
Following a similar approach to the previous PRs, I tried to see how refactoring the parents state from plain objects to maps could impact the performance. Here are the results I got:
Before:
After: