-
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
Refactor resetBlocks to action-generators #14594
Conversation
I'm doing this in smaller pulls so it's easier to review |
a240b2a
to
448f939
Compare
This will need a refresh after #14003 which, as noted at #14003 (comment) , had some overlapping effort with respect to the |
448f939
to
994d5a6
Compare
Latest work refreshes this pull to refactor Unit tests pass, awaiting results of e2e tests via travis. |
Size Change: -12 B (0%) Total Size: 864 kB
ℹ️ View Unchanged
|
This pull is ready for another review. |
If @adamziel's pull is more recent and refactors the same thing, probably best to focus on his. This pr is really stale as it's been sitting for a while. |
Yes, it is. Let's focus on the most recent one. Thank you for understanding 😃 |
Description
As part of the ongoing refactor of effects to controls/action-generators, this is the first part of doing the work in the
@wordpress/block-editor
package. In this pull:replaceBlocks
is migrated to action-generators.STORE_KEY
constant introduced and exported (this reduces chance of human error in adding the store reference). Importing the key allows for automatic dependency management to pick up theblock-editor
package dependency as well.controls.js
file and usage since@wordpress/data-controls
is a suitable replacement.How has this been tested?
Types of changes
This should not be a breaking change.
Checklist: