-
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: Directly import useShouldContextualToolbarShow hook #50506
Conversation
|
||
function selector( select ) { | ||
const { | ||
__unstableGetEditorMode, | ||
hasMultiSelection, | ||
isTyping, | ||
getLastMultiSelectedBlockClientId, | ||
} = unlock( select( blockEditorStore ) ); | ||
} = select( blockEditorStore ); |
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.
The mapSelect
no longer uses private selectors.
Size Change: +2.91 kB (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
Flaky tests detected in d3f8dd8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4937122050
|
c1a4f63
to
d3f8dd8
Compare
What?
This is a follow-up to #49644.
PR removes unnecessary unlocking of private APIs from the
SelectedBlockPopover
component.Why?
The file is in the same package as a hook. So there's no need for it to use unlocking API.
Testing Instructions