Commit 7ee893d
Don't update mounted flag on React revision (#56371)
Summary:
Pull Request resolved: #56371
Changelog: [GENERAL][FIXED] - Prevent updates to mounted flag on the React revision
Currently, with fabric branching enabled, the logic for `updateMountedFlag` can run twice for the same tree: first when committing it to a react revision, then when merging to the main revision. This has the potential to drive `enableCounter_ ` negative.
This diff, makes it so that `updateMountedFlag` runs only when committing to the main branch.
Reviewed By: rubennorte, cipolleschi
Differential Revision: D99996551
fbshipit-source-id: 8e578b3bf1e22ef1f87fdd0df20dc25bb4631ccf1 parent 4a59f90 commit 7ee893d
File tree
1 file changed
+1
-1
lines changed- packages/react-native/ReactCommon/react/renderer/mounting
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
0 commit comments