-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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 crash when navigating away from screens #46559
Conversation
This pull request was exported from Phabricator. Differential Revision: D62935876 |
This pull request was exported from Phabricator. Differential Revision: D62935876 |
Summary: Pull Request resolved: facebook#46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Differential Revision: D62935876
f4d3419
to
0ef860a
Compare
This pull request was exported from Phabricator. Differential Revision: D62935876 |
Summary: Pull Request resolved: facebook#46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Differential Revision: D62935876
0ef860a
to
4be15a1
Compare
This pull request was exported from Phabricator. Differential Revision: D62935876 |
Summary: Pull Request resolved: facebook#46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Differential Revision: D62935876
4be15a1
to
c31f08b
Compare
This pull request was exported from Phabricator. Differential Revision: D62935876 |
c31f08b
to
31fc126
Compare
Summary: Pull Request resolved: facebook#46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Reviewed By: philIip Differential Revision: D62935876
Summary: Pull Request resolved: facebook#46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Reviewed By: philIip Differential Revision: D62935876
This pull request was exported from Phabricator. Differential Revision: D62935876 |
31fc126
to
51c0d08
Compare
This pull request has been merged in c6f3282. |
This pull request was successfully merged by @cipolleschi in c6f3282 When will my fix make it into a release? | How to file a pick request? |
Summary: Pull Request resolved: #46559 There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method. This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to `didMoveToWindow`. This change fixes that by explicitly expanding the macro in this scenario and passing the right selector. ## Changelog: [iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView ## Facebook This should fix T201780472 Reviewed By: philIip Differential Revision: D62935876 fbshipit-source-id: e29aadf201c8066b5d3b7b0ada21fa8d763e9af0
Summary:
There is an edge case when we navigate away from a screen that contains a scroll view where one of the UISCrollViewDelegates does not implement the scrollViewDidEndDecelerating method.
This happens because the Macro used assumes that the event that we are forwarding is the actual method from where the macro is called. Which is not true when it comes to
didMoveToWindow
.This change fixes that by explicitly expanding the macro in this scenario and passing the right selector.
Changelog:
[iOS][Fixed] - Fixed a crash when navigating away from a screen that contains a scrollView
Facebook
This should fix T201780472
Differential Revision: D62935876