-
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 connection of animated nodes and scroll offset with useNativeDriver. #24177
Fix connection of animated nodes and scroll offset with useNativeDriver. #24177
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:
flow
found some issues.
… when using native driver in Animated, fix Expected node to be marked as "native", optimize AnimatedNode creation and connections"" This reverts commit 95c7db9
f25b657
to
80e5a9e
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.
Code analysis results:
flow
found some issues.
80e5a9e
to
f7507e2
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.
Code analysis results:
flow
found some issues.
f7507e2
to
827fc61
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.
Code analysis results:
flow
found some issues.
827fc61
to
f2643d1
Compare
Add example showing regression before this fix is applied.
f2643d1
to
ab49cb0
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.
@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Let me get back to this one! |
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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
ace654a
to
19bba43
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.
@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@cpojer Hello! what stop to merge this pr?) |
I finally got a strong enough computer to run the tests locally at FB :D I rebased this internally at FB and can verify that as far as I can see the previous issue should be resolved. I'm trying to land it now. |
Change O(n^2) to O(n)
@cpojer I made a small change to optimize the connection queue handling |
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 adding an RNTester page that captures this use case!
This pull request was successfully merged by @msand in bdc530b. When will my fix make it into a release? | Upcoming Releases |
…er. (facebook#24177) Summary: Add example showing regression before this fix is applied. facebook#18187 Was found to introduce a regression in some internal facebook code-base end to end test which couldn't be shared. I was able to create a reproducible demo of a regression I found, and made a fix for it. Hopefully this will fix the internal test, such that the pr can stay merged. ## Changelog [GENERAL] [Fixed] - Fix connection of animated nodes and scroll offset with useNativeDriver. Pull Request resolved: facebook#24177 Reviewed By: rickhanlonii Differential Revision: D14845617 Pulled By: cpojer fbshipit-source-id: 1f121dbe773b0cde2adf1ee5a8c3c0266034e50d
Summary: Change O(n^2) to O(n) Minor follow-up to: facebook#24177 ## Changelog [Internal] [Changed] - Optimize native animated connection queue handling Pull Request resolved: facebook#25256 Differential Revision: D15804527 Pulled By: cpojer fbshipit-source-id: 4a1e1b51faf6ed7b98eb08aa47e18cfaea541dad
Add example showing regression before this fix is applied.
Summary
#18187 Was found to introduce a regression in some internal facebook code-base end to end test which couldn't be shared. I was able to create a reproducible demo of a regression I found, and made a fix for it. Hopefully this will fix the internal test, such that the pr can stay merged.
Changelog
[GENERAL] [Fixed] - Fix connection of animated nodes and scroll offset with useNativeDriver.
Test Plan
The commit includes a new example for RNTester. Unit and E2E integration could be added in a later commit.
ping @cpojer