-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
♻️ Bento: Internal components should not need ...rest
#35693
Conversation
Hey @erwinmombay, @jridgewell! These files were changed:
|
4cb8eaf
to
6a3b621
Compare
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.
Looks good! Does Bento have any sort of memory tracking/benchmarking set up? I would expect this to show a decent reduction in memory footprint due to the reduced cloning.
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!
Good idea, no memory tracking/benchmarking set up currently, but I'll make a note to look into this. Thanks. |
... because we know exactly what props are being passed to it, and should propagate them intentionally when relevant rather than blindly.
That's how we get the
outsetArrows
issue described in #35553:The internal components targeted include:
BaseCarousel
's helpersScroller
,Arrow
, andDefaultArrow
StreamGallery
's helperDefaultArrow
LightboxGalleryProviders
's helpersCloseButtonIcon
,NavButtonIcon
, andToggleViewIcon
Lightbox
's helperScreenReaderCloseButton
SocialShare
's helperSocialShareIcon
/to @developit