-
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
Navigation: Update the dependencies for the useEffect that handles notifications #48066
Conversation
Size Change: +12 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in a253a51. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4173038895
|
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 PR updates multiple effect dependencies in the navigation block and related blocks. It only adds dependencies so I will 👍🏻 it based on that - our testing of the block is still sparse so ...
What?
This useEffect doesn't list all of its dependencies.
Why?
Not listing all dependencies can cause unexpected bugs.
How?
Add the dependencies to the array.
Testing Instructions
5. If you have a classic menu, try converting it to navigation menu. 6. Try creating a new navigation by adding a block to a fallback navigation. 7. Try editing a navigation block that has innerblocks set in a theme.
Testing Instructions for Keyboard
As above, but for step 4, check that you hear a message saying:
Creating Navigation Menu.