Skip to content

Stop suppressing the for-frameworks guard inside umbrella context - #58850

Closed
coado wants to merge 1 commit into
react:mainfrom
coado:export-D123399815
Closed

coado wants to merge 1 commit into
react:mainfrom
coado:export-D123399815

Conversation

@coado

@coado coado commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary:
The for-frameworks guard skipped its warning whenever RN_UMBRELLA_CONTEXT was defined, and its message told consumers to include the header through the module umbrella. Neither makes sense for this tier: umbrellas only re-export public headers, and framework-tier modules have no umbrella at all. The exemption therefore had no legitimate use; its only effect was to hide a public header transitively leaking a for-frameworks header into consumer code.

Drop the RN_UMBRELLA_CONTEXT exemption so such a leak is reported, and point the message at the only real escape hatch, RN_ALLOW_FRAMEWORKS. No umbrella or public header includes a for-frameworks header today, so this does not change any existing build.

Changelog:
[Internal]

Differential Revision: D123399815

Summary:
The for-frameworks guard skipped its warning whenever `RN_UMBRELLA_CONTEXT` was defined, and its message told consumers to include the header through the module umbrella. Neither makes sense for this tier: umbrellas only re-export public headers, and framework-tier modules have no umbrella at all. The exemption therefore had no legitimate use; its only effect was to hide a public header transitively leaking a for-frameworks header into consumer code.

Drop the `RN_UMBRELLA_CONTEXT` exemption so such a leak is reported, and point the message at the only real escape hatch, `RN_ALLOW_FRAMEWORKS`. No umbrella or public header includes a for-frameworks header today, so this does not change any existing build.

Changelog:
[Internal]

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

meta-codesync Bot commented Oct 5, 2026

Copy link
Copy Markdown

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

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

meta-codesync Bot commented Oct 6, 2026

Copy link
Copy Markdown

This pull request has been merged in 2afaf3b.

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