-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 effect.js to controls #27298
Conversation
Size Change: +32 B (0%) Total Size: 1.2 MB
ℹ️ View Unchanged
|
3b3917c
to
ebc5b7d
Compare
@tyxla would you mind reviewing? E2E failures here are consistent with ones on |
So It's surprising to see that the size of the bundle doesn't decrease though:
|
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'm not the best person to approve this PR as I know little about side effects in the block editor, but based on my limited knowledge changes proposed look good. All tests pass which is the most important indicator here.
I would appreciate some cross-check from someone else.
'getSelectedBlockCount' | ||
); | ||
|
||
speak( |
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.
It isn't clear when we use controls in actions. Technically speaking speak
is also a side effect, although it definitely isn't something that you need to wait for. I see that it's inlined the same way in other places so it might be may misunderstanding when to use controls.
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 is testing well for me and code looks good. Really nice work 👏
I can see some experimental e2e tests are failing - any chance that's related?
Those tests shouldn't fail anymore after the rebase. I can't guarantee something else will fail though. The stability of e2e tests isn't ideal with the constantly growing number of contributions :) |
Description
This PR migrates the
block-editor
store effects into controls. See #27069 and #26866.That allows us to also remove
refx
as a middleware for side effects, which this PR is also taking care of.How has this been tested?
Types of changes
Non-breaking code quality enhancement.
Checklist: