-
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 crash in the interop layer when components emits events as soon as are created #42743
Conversation
This pull request was exported from Phabricator. Differential Revision: D53230471 |
824c2ed
to
febe9af
Compare
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Differential Revision: D53230471
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Differential Revision: D53230471
febe9af
to
40c1722
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Differential Revision: D53230471
40c1722
to
ebd5500
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Differential Revision: D53230471
ebd5500
to
0f44514
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
0f44514
to
108bfee
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
108bfee
to
05ca59c
Compare
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
05ca59c
to
2d4ff4c
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
2d4ff4c
to
b3e8e2b
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
b3e8e2b
to
3d59407
Compare
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
3d59407
to
1e7ef5c
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
1e7ef5c
to
d8128f0
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
d8128f0
to
37511e4
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
…s are created (facebook#42743) Summary: When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer. The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash. There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created. ## Changelog: [iOS][Fixed] - Immediately set props of Components that goes through the interop layer Reviewed By: sammy-SC Differential Revision: D53230471
37511e4
to
a052e27
Compare
This pull request was exported from Phabricator. Differential Revision: D53230471 |
This pull request has been merged in 68ae8cd. |
Summary:
When working on Mobile Home, we found a component (RNCSafeAreaView) that was going through the interop layer.
The component eits an event as soon as its content view changes, but this is too early: the block that emits the event is still nil at that point in time and that makes the app crash.
There might be other components with similarbehavior, therefore, we are fixing it at the interop layer, setting the props immediately after the component is created.
Changelog:
[iOS][Fixed] - Immediately set props of Components that goes through the interop layer
Differential Revision: D53230471