-
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
Gallery: Combine useSelect calls #57240
Conversation
There are a number of other optimisations/tidy ups that could be done in this method, but will do them in little parts to keep it simple, so this one confined to just the useSelect. |
Size Change: +4 B (0%) Total Size: 1.71 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.
LGTM 👍
✅ Adding gallery images via drag-n-drop, upload button, and media library works
✅ Removing images from the gallery worked as expected
✅ Reordering images continues to work
✅ Gallery image settings were applied to inner images correctly
✅ Didn't spot any differences with trunk
What?
Combines the 3 separate
useSelect
calls in the Gallery edit component into one.Why?
Haveing multiple
useSelect
calls in a component is not optimal for performance reasons.How?
Pulled the second two calls into the first one.
Testing Instructions