Skip to content

Add flushSync to the Fabric renderer (#38475) - #60479

Open
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D135611937
Open

rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D135611937

Conversation

@rubennorte

Copy link
Copy Markdown
Member

Summary:
This just adds the definition of flushSync to the generated types, but the actual implementation will land in a different PR shortly.

Changelog: [internal]

Reviewed By: javache

Differential Revision: D135611937

Summary:

## Context
The public `findNodeHandle` export is a direct alias of `ReactFabric.findNodeHandle`. Its inferred `typeof` declaration pulls the whole private Fabric interface into the generated API snapshot, so internal renderer changes appear as changes to the public React Native API.

## Changes
Give the alias a self-contained projection of its existing method signature and regenerate the API snapshot without the private Fabric object and its supporting declarations. The projection preserves the type generator's existing method-level nullable-to-undefined convention; a standalone function annotation would otherwise change the generated public nullability. Keep the runtime alias unchanged and preserve the public call signature.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D135632950
Summary:
This just adds the definition of flushSync to the generated types, but the actual implementation will land in a different PR shortly.

Changelog: [internal]

Reviewed By: javache

Differential Revision: D135611937
@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 Dec 2, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Dec 2, 2026
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135611937.

@javache javache left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Warning

JavaScript API change detected

This PR commits an update to ReactNativeApi.d.ts, indicating a change to React Native's public JavaScript API.

  • Please include a clear changelog message.
  • This change will be subject to additional review.

This change was flagged as: POTENTIALLY_BREAKING

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants