-
Notifications
You must be signed in to change notification settings - Fork 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
Remove unnecessary shouldRemoveClippedSubviews prop #12686
Conversation
|
@mananjadhav @puneetlath One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Note - I think this needs #12688 to be merged for this to successfully work. |
Removed the CP Staging label because this is now just cleanup, not a bugfix |
Any chance this will cause a performance regression? I think we added it while following this guide -> https://reactnative.dev/docs/optimizing-flatlist-configuration#removeclippedsubviews
What's the bug? |
The React Native bug issue was created then closed here. Basically there are crashes that happen if you use
Yeah, I think that guide might be out-of-date or something because unless I'm mistaken, this code was just resulting in the same thing as the default. copy/pasting my explanation from Slack so everyone can see it... Right now we are set up like:
The effect is that |
Ah sorry, I am a little confused by the explanation. Disregarding the default behavior, it seems like we are changing the param for Android from |
Mostly just trying to understand what is happening - but also do have a concern that someone may try to add |
No, because the default value of the parameter is Value of
Value of
So it should have no effect on performance |
In a separate PR we removed the |
Ok so what is this PR doing lol? |
At this point, it's just removing unnecessary code that doesn't do anything. |
Ah ok - sorry I was just thrown off by the description
|
Totally understandable – updated the PR description to remove that outdated excerpt |
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
🎀 👀 🎀
ScreenshotsWebweb-remove-clipped-view-test.movMobile Web - Chromemweb-chrome-remove-clipped-view-test.movMobile Web - Safarimweb-safari-remove-clipped-view-test.movDesktopdesktop-remove-clipped-view-test.moviOSios-remove-clipped-view-test.movAndroidandroid-remove-clipped-view-test.mov |
I can't see any difference between @mananjadhav's checklist and the right one and it looks like everything is checked, so I'm going to go ahead and merge. |
@puneetlath looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @puneetlath in version: 1.2.28-0 🚀
|
🚀 Deployed to staging by @puneetlath in version: 1.2.28-0 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.2.28-2 🚀
|
cc @roryabraham
Details
This is just removing unnecessary code that doesn't do anything.
Fixed Issues
$ #12666
Tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android