-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fix regression of VirtualizedList jumpy header #22025
Conversation
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.
Code analysis results:
eslint
found some issues.
Libraries/Lists/VirtualizedList.js
Outdated
@@ -805,7 +805,9 @@ class VirtualizedList extends React.PureComponent<Props, State> { | |||
if (stickyIndicesFromProps.has(ii + stickyOffset)) { | |||
const initBlock = this._getFrameMetricsApprox(lastInitialIndex); | |||
const stickyBlock = this._getFrameMetricsApprox(ii); | |||
const leadSpace = stickyBlock.offset - initBlock.offset; | |||
const leadSpace = | |||
stickyBlock.offset - initBlock.offset - |
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.
prettier/prettier: Insert ⏎···············
e801d7b
to
c0043ae
Compare
Considering there's a PR ready to fix this issue, is there anything we can do to help out in making it approved and merged? |
I still have a PR thats been open now for 8 months without a review, so I am not getting my hopes up for this one either. Its really disappointing how contributions are handled in this repository. |
I'm hitting this issue on prod and this PR resolves the issue, can we get eyes on this PR please? |
This fixes the issue for me as well, thank you! Would be great to see this merged. |
I tested these changes but the scroll is junkier than before 😐 |
@hamidhadi as someone else pointed out in your issue, maybe you just didn't implement |
@danilobuerger I just shared my experience with your changes. |
Hey @hamidhadi, it seems you tagged the wrong person. |
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.
Tested the changes locally, and this works great!
This PR has definitely improved the jumpy behaviour of my sectionList but unfortunately the issue persists. |
@modeinnovations @hamidhadi It seem there is an issue using Personally I already use this fix on production since a month ! |
Fixes: zulip#3286 and zulip#3176 Related but not ready to merge: facebook/react-native#22025
Fixes: zulip#3286 and zulip#3176 Related fix upstream but not ready to merge: facebook/react-native#22025 A planed minor redesign (discussed with Rishi) to make the Unread tabs less flashy and 'circus-colors-like' requires us to remove the stickiness from the headers. Even though though the design is still WIP, it makes sense to use this change as a fix to an issue that was already reported multiple times. This makes the UnreadCards SectionList have normal, non-sticky headers. We have to set `stickySectionHeadersEnabled` explicitly to `false` as the defaults differ for iOS (true) and Android (false)
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.
Hey everyone,
sorry we missed this for a long time. We promise to get better at reviewing and landing PRs. I'm gonna go ahead and ship this.
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.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@danilobuerger merged commit e4fd9ba into |
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Summary: Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468 Keeps the intended outcome of facebook#18105 Pull Request resolved: facebook#22025 Differential Revision: D13941915 Pulled By: cpojer fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Fixes #20956, #21361, #21198, #21468
Keeps the intended outcome of #18105
Test Plan:
See Video and Demo in #20956
Release Notes:
[GENERAL] [BUGFIX] [VirtualizedList] - Fix regression for jumpy header