-
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
Interface: Fix ESLint warnings #53456
Conversation
@@ -24,7 +24,7 @@ function ComplementaryAreaToggle( { | |||
( select ) => | |||
select( interfaceStore ).getActiveComplementaryArea( scope ) === | |||
identifier, | |||
[ identifier ] | |||
[ identifier, scope ] |
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 selector should rerun when the scope (string
) changes.
disableComplementaryArea, | ||
enableComplementaryArea, |
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 disableComplementaryArea
and enableComplementaryArea
have stable references.
enableComplementaryArea, | ||
disableComplementaryArea, |
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.
Same
@@ -24,7 +24,7 @@ export default function MoreMenuFeatureToggle( { | |||
const isActive = useSelect( | |||
( select ) => | |||
select( interfaceStore ).isFeatureActive( scope, feature ), | |||
[ feature ] | |||
[ feature, scope ] |
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 selector should rerun when the scope (string) changes.
Size Change: +23 B (0%) Total Size: 1.44 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.
Changes are straightforward and make sense to me. Thanks 🚀
What?
PR fixes ESlint warnings in the
interface
package.Why?
I'm working on a different PR to replace
withPluginContext
HoC usage in the package with theusePluginContext
hook and decided to extract these code quality changes.Testing Instructions
CI checks should be green.