Skip to content

Include renderer core via its umbrella header in DOM.h - #59107

Closed
j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D125435350
Closed

j-piasecki wants to merge 1 commit into
react:mainfrom
j-piasecki:export-D125435350

Conversation

@j-piasecki

Copy link
Copy Markdown
Contributor

Summary:
DOM.h is a "for frameworks" header but included <react/renderer/core/ShadowNode.h> directly. That header is in the public tier, so its UmbrellaGuard hard-errors when consumers opt into the strict API, and RN_ALLOW_FRAMEWORKS does not suppress it. Include the module umbrella <React/RendererCore.h> instead, which re-exports ShadowNode.h.

RootShadowNode.h stays as a direct include: it is itself a "for frameworks" header and its module has no public umbrella.

Changelog: [Internal]

Differential Revision: D125435350

Summary:
`DOM.h` is a "for frameworks" header but included `<react/renderer/core/ShadowNode.h>` directly. That header is in the public tier, so its `UmbrellaGuard` hard-errors when consumers opt into the strict API, and `RN_ALLOW_FRAMEWORKS` does not suppress it. Include the module umbrella `<React/RendererCore.h>` instead, which re-exports `ShadowNode.h`.

`RootShadowNode.h` stays as a direct include: it is itself a "for frameworks" header and its module has no public umbrella.

Changelog: [Internal]

Differential Revision: D125435350
@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 Oct 15, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 15, 2026
@meta-codesync

meta-codesync Bot commented Oct 15, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in cca7207 Oct 15, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 15, 2026
@meta-codesync

meta-codesync Bot commented Oct 15, 2026

Copy link
Copy Markdown

This pull request has been merged in cca7207.

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

1 participant