Skip to content

Include umbrella headers from jsinspector-modern (#58707) - #58707

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

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

Conversation

@j-piasecki

@j-piasecki j-piasecki commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

jsinspector-modern headers included three public-tier headers directly: react/timing/primitives.h, react/utils/OnScopeExit.h and ReactCommon/RuntimeExecutor.h. These are protected by UmbrellaGuard.h, so any consumer that defined RN_STRICT_API and included one of the affected jsinspector headers (e.g. RuntimeTarget.h, HostTarget.h, ReactCdp.h) hit a hard #error, even with RN_ALLOW_FRAMEWORKS defined.

Switch to the module umbrellas <React/Timing.h>, <React/Utils.h> and <React/RuntimeExecutor.h>, and declare the react/timing dependency that was previously used without being declared (BUCK, CMake, CocoaPods).

Changelog: [Internal]

Differential Revision: D122118482

@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 Sep 28, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Sep 28, 2026
@meta-codesync

meta-codesync Bot commented Sep 28, 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 D122118482.

Summary:

`jsinspector-modern` headers included three public-tier headers directly: `react/timing/primitives.h`, `react/utils/OnScopeExit.h` and `ReactCommon/RuntimeExecutor.h`. These are protected by `UmbrellaGuard.h`, so any consumer that defined `RN_STRICT_API` and included one of the affected jsinspector headers (e.g. `RuntimeTarget.h`, `HostTarget.h`, `ReactCdp.h`) hit a hard `#error`, even with `RN_ALLOW_FRAMEWORKS` defined.

Switch to the module umbrellas `<React/Timing.h>`, `<React/Utils.h>` and `<React/RuntimeExecutor.h>`, and declare the `react/timing` dependency that was previously used without being declared (BUCK, CMake, CocoaPods).

Changelog: [Internal]

Differential Revision: D122118482
@meta-codesync meta-codesync Bot changed the title Include umbrella headers from jsinspector-modern Include umbrella headers from jsinspector-modern (#58707) Sep 29, 2026

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 p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant