-
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
Post Terms: Fix a 'useSelect' warning in the 'usePostTerms' hook #54068
Conversation
@@ -12,8 +14,8 @@ export default function usePostTerms( { postId, term } ) { | |||
const visible = term?.visibility?.publicly_queryable; | |||
if ( ! visible ) { | |||
return { | |||
postTerms: [], | |||
_isLoading: false, |
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.
I think this was a typo. Below, we're returning isLoading
.
Size Change: +12 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
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.
Thank you!
Flaky tests detected in e4e8f17. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6027450749
|
What?
PR fixes a 'useSelect' warning in the 'usePostTerms' hook by using a stable array reference.
Testing Instructions
Screenshots or screencast