Uh oh!
There was an error while loading. Please reload this page.
Make missing parent view state in updateLayout a soft error - #49951
Make missing parent view state in updateLayout a soft error#49951javache wants to merge 1 commit into
Conversation
Summary: We previously fixed Differentiator generating an incorrect parentTag (react#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 (react#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
commented
Mar 11, 2025
This pull request was exported from Phabricator. Differential Revision: D70966621 |
facebook-github-bot
commented
Mar 11, 2025
This pull request was exported from Phabricator. Differential Revision: D70966621 |
facebook-github-bot
commented
Mar 11, 2025
This pull request has been merged in ade41c8. |
react-native-bot
commented
Mar 11, 2025
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? |
Can you release this in 0.79.6? |
javache
commented
Jul 7, 2025
Please create a pick request here: https://github.com/reactwg/react-native-releases/issues/new?assignees=&labels=Type%3A+Pick+Request&projects=&template=pick_request_form.yml |
) Summary: Pull Request resolved: react#49951 We previously fixed Differentiator generating an incorrect parentTag (react#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 (react#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
Summary: Pull Request resolved: #49951 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 Reviewed By: NickGerleman Differential Revision: D70966621 fbshipit-source-id: 33d0b6a90860788a4c9a8c6cea36c2c72c1392e1
react-native-bot
commented
Oct 20, 2025
This pull request was successfully merged by @javache in 56ad8d9 When will my fix make it into a release? | How to file a pick request? |
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