Skip to content

Export RCTDidInitializeModuleNotificationModuleKey for the module userInfo key#57341

Closed
eapen wants to merge 1 commit into
react:mainfrom
eapen:export-D109716080
Closed

Export RCTDidInitializeModuleNotificationModuleKey for the module userInfo key#57341
eapen wants to merge 1 commit into
react:mainfrom
eapen:export-D109716080

Conversation

@eapen

@eapen eapen commented Jun 25, 2026

Copy link
Copy Markdown

Summary:
Add RCTDidInitializeModuleNotificationModuleKey to RCTConstants.h/.m so observers of RCTDidInitializeModuleNotification can read the module out of userInfo via a named constant instead of the bare @"module" literal. Update the poster in RCTTurboModuleManager.mm to use the new symbol so producer and consumer share a single source of truth.

This follows the existing naming convention in RCTConstants.h (RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey).

Purely additive — no existing API affected.

Changelog:
[iOS][Added] - Export RCTDidInitializeModuleNotificationModuleKey constant for RCTDidInitializeModuleNotification userInfo

Differential Revision: D109716080

…serInfo key

Summary:
Add `RCTDidInitializeModuleNotificationModuleKey` to `RCTConstants.h`/`.m` so observers of `RCTDidInitializeModuleNotification` can read the module out of `userInfo` via a named constant instead of the bare `@"module"` literal. Update the poster in `RCTTurboModuleManager.mm` to use the new symbol so producer and consumer share a single source of truth.

This follows the existing naming convention in `RCTConstants.h` (`RCTUserInterfaceStyleDidChangeNotificationTraitCollectionKey`).

Purely additive — no existing API affected.

Changelog:
[iOS][Added] - Export `RCTDidInitializeModuleNotificationModuleKey` constant for `RCTDidInitializeModuleNotification` userInfo

Differential Revision: D109716080
@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 Jun 25, 2026
@meta-codesync

meta-codesync Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

@meta-codesync meta-codesync Bot closed this in 217ee52 Jun 26, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jun 26, 2026
@meta-codesync

meta-codesync Bot commented Jun 26, 2026

Copy link
Copy Markdown

This pull request has been merged in 217ee52.

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 Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant