Skip to content

Conversation

javache
Copy link
Member

@javache javache commented Mar 11, 2025

Summary:
We previously fixed Differentiator generating an incorrect parentTag (#48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (#46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support needsCustomLayoutForChildren, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Differential Revision: D70966621

@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 Mar 11, 2025
Summary:
We previously fixed Differentiator generating an incorrect parentTag (facebook#48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (facebook#46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support `needsCustomLayoutForChildren`, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Differential Revision: D70966621
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in ade41c8.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 11, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @javache in ade41c8

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

@DorianMazur
Copy link
Contributor

DorianMazur commented Jul 7, 2025

Can you release this in 0.79.6?

@javache
Copy link
Member Author

javache commented Jul 7, 2025

@javache javache deleted the export-D70966621 branch July 7, 2025 16:48
joemun pushed a commit to discord/react-native that referenced this pull request Jul 16, 2025
…#49951)

Summary:
Pull Request resolved: facebook#49951

We previously fixed Differentiator generating an incorrect parentTag (facebook#48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (facebook#46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support `needsCustomLayoutForChildren`, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Reviewed By: NickGerleman

Differential Revision: D70966621

fbshipit-source-id: 33d0b6a90860788a4c9a8c6cea36c2c72c1392e1
joemun pushed a commit to discord/react-native that referenced this pull request Jul 16, 2025
…#49951)

Summary:
Pull Request resolved: facebook#49951

We previously fixed Differentiator generating an incorrect parentTag (facebook#48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (facebook#46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support `needsCustomLayoutForChildren`, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Reviewed By: NickGerleman

Differential Revision: D70966621

fbshipit-source-id: 33d0b6a90860788a4c9a8c6cea36c2c72c1392e1
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.

4 participants