-
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
Fix synced pattern editing in write mode and refactor block editing mode to reducer #67026
base: trunk
Are you sure you want to change the base?
Changes from all commits
4c7653a
e19dfa3
828d50c
8d92546
758fa60
e1d6ca4
1721a7a
c40fac0
edc59fe
38ac49c
ea18275
49d0386
4378c0d
38a3ab3
a43d368
4f44c44
d636bac
a599a3d
60887f7
4ad95bc
eb11d91
06c50db
9493ab9
b183f7f
c8bcf35
3dfba9a
8207486
da87cbc
6f69a32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,7 @@ function getEnabledClientIdsTreeUnmemoized( state, rootClientId ) { | |
export const getEnabledClientIdsTree = createRegistrySelector( ( select ) => | ||
createSelector( getEnabledClientIdsTreeUnmemoized, ( state ) => [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think some of the dependencies here can probably be removed because they're not used in the selector anymore. But I don't expect that it impacts anything. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call, I'll take a look! |
||
state.blocks.order, | ||
state.derivedBlockEditingModes, | ||
state.blockEditingModes, | ||
state.settings.templateLock, | ||
state.blockListSettings, | ||
|
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 the one that I'm not sure about because some people could call
registry.dispatch( preferencesStore ).set( 'core', 'editorTool', mode );
directly. Maybe it's fine I don't knowThere 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.
Yeah, that's a good point, though I guess the spoken messages also won't work when changing the mode that way. Some options:
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.
Also, what happens on "init"? which mode is used?
I may be leaning towards the first option personally to decouple the preference setting entirely from the computation of the mode.