-
Notifications
You must be signed in to change notification settings - Fork 25k
[FIX] ListView requestAnimationFrame leak #21802
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
Conversation
RSNara
left a comment
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.
@exced Can we use filter here as well?
|
@RSNara Yep for sure, I find it clearer ! |
RSNara
left a comment
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 for the quick changes! 😁
facebook-github-bot
left a comment
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.
RSNara is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Related to #21488 Disclaimer: I made this PR. I think there's some requestAnimationFrame events that are not cleared on unmount because of bad use of `splice` method. - All flow tests succeed. - RNTester: iOS (this change should only affect iOS because calculateChildFrames is iOS only) Show perf monitor, show ListView* screen, start scrolling. UI frame Rate is used at the beginning. When scrolling there is no drop in FPS rate. - TODO: I'll write a load test for ListView [GENERAL] [ENHANCEMENT] [ListView.js] - rm TimerMixin Pull Request resolved: #21802 Differential Revision: D10391812 Pulled By: RSNara fbshipit-source-id: 49f0b0a4641ec29bcb4cc04bd3bafb42b3842b69
Summary: Related to facebook#21488 Disclaimer: I made this PR. I think there's some requestAnimationFrame events that are not cleared on unmount because of bad use of `splice` method. - All flow tests succeed. - RNTester: iOS (this change should only affect iOS because calculateChildFrames is iOS only) Show perf monitor, show ListView* screen, start scrolling. UI frame Rate is used at the beginning. When scrolling there is no drop in FPS rate. - TODO: I'll write a load test for ListView [GENERAL] [ENHANCEMENT] [ListView.js] - rm TimerMixin Pull Request resolved: facebook#21802 Differential Revision: D10391812 Pulled By: RSNara fbshipit-source-id: 49f0b0a4641ec29bcb4cc04bd3bafb42b3842b69
Related to #21488
Disclaimer: I made this PR.
I think there's some requestAnimationFrame events that are not cleared on unmount because of bad use of
splicemethod.Test Plan:
Show perf monitor, show ListView* screen, start scrolling. UI frame Rate is used at the beginning. When scrolling there is no drop in FPS rate.
Release Notes:
[GENERAL] [ENHANCEMENT] [ListView.js] - rm TimerMixin