Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Jan 30, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jan 31, 2024
…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
@facebook-github-bot
Copy link
Contributor

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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53230471

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 31, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 68ae8cd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants