-
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
Widgets: Optimize useSelect calls #35256
Conversation
Size Change: -28 B (0%) Total Size: 1.07 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.
Thanks! A few deps are missing here and there, others look good!
packages/customize-widgets/src/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
Outdated
Show resolved
Hide resolved
packages/edit-widgets/src/components/keyboard-shortcut-help-modal/dynamic-shortcut.js
Outdated
Show resolved
Hide resolved
…lp-modal/dynamic-shortcut.js Co-authored-by: Kai Hao <kevin830726@gmail.com>
…dal/dynamic-shortcut.js Co-authored-by: Kai Hao <kevin830726@gmail.com>
Co-authored-by: Kai Hao <kevin830726@gmail.com>
Thanks, @kevin940726, for catching those. |
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.
LGTM 👍
Description
Adds missing dependency arrays to
useSelect
calls to memorize selector callbacks in the Widgets-related packages.How has this been tested?
Make sure new Widget screens work correctly.
Types of changes
Code Quality/Performance
Checklist:
*.native.js
files for terms that need renaming or removal).