Skip to content

Don't update mounted flag on React revision#56371

Closed
j-piasecki wants to merge 1 commit intofacebook:mainfrom
j-piasecki:export-D99996551
Closed

Don't update mounted flag on React revision#56371
j-piasecki wants to merge 1 commit intofacebook:mainfrom
j-piasecki:export-D99996551

Conversation

@j-piasecki
Copy link
Copy Markdown
Contributor

Summary:
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.

Differential Revision: D99996551

Summary:
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.

Differential Revision: D99996551
@meta-cla meta-cla 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 Apr 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 8, 2026

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D99996551.

@facebook-github-tools facebook-github-tools bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Apr 8, 2026
@meta-codesync meta-codesync bot closed this in 7ee893d Apr 8, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Apr 8, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 8, 2026

This pull request has been merged in 7ee893d.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @j-piasecki in 7ee893d

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

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. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants