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

Demonstrate bug in differentiator where reparented nodes reference non-existent nodes #48002

Closed
wants to merge 1 commit into from

Conversation

javache
Copy link
Member

@javache javache commented Nov 28, 2024

Summary:
Demonstrates the issue identified in #47960 and a crash we've been seeing internally around getViewState referencing a view that does not exist.

When reparenting unflattened nodes, Differentiator may emit an update with a parentShadowView that does not exist on the native side yet, thereby crashing Android.

Landing the test-case first (with some test cleanup), so the diff for the actual fix is clearer.

Changelog: [Internal]

Differential Revision: D66557919

…n-existent nodes

Summary:
Demonstrates the issue identified in facebook#47960 and a crash we've been seeing internally around `getViewState` referencing a view that does not exist.

When reparenting unflattened nodes, Differentiator may emit an `update` with a `parentShadowView` that does not exist on the native side yet, thereby crashing Android.

Landing the test-case first (with some test cleanup), so the diff for the actual fix is clearer.

Changelog: [Internal]

Differential Revision: D66557919
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 28, 2024
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in bc9e4db.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @javache in bc9e4db

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D66557919 branch November 28, 2024 14:48
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.

3 participants