-
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
Edit Post: Fix the 'inlineToolbar' settings toggle #47960
Conversation
Size Change: +2 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 0fa8f6d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4142873756
|
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.
Nice catch, thanks 👍 🚀
So cool 🚀 |
What?
PR fixes the bug when activating the
inlineToolbar
feature requires reloading the editor.Spotted thanks to the
react-hooks/exhaustive-deps
rule.Why?
The feature status was missing from the
useMemo
dependencies, and the new settings value was never calculated.Testing Instructions
inlineToolbar
feature using this snippet -wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'inlineToolbar' )
.Screenshots or screencast
CleanShot.2023-02-10.at.14.00.17.mp4