Skip to content

Expose adding handlers API from RCTDevSettings - #54314

Closed
coado wants to merge 2 commits into
react:mainfrom
coado:export-D85766955
Closed

coado wants to merge 2 commits into
react:mainfrom
coado:export-D85766955

Conversation

@coado

@coado coado commented Oct 29, 2025 •

Copy link
Copy Markdown
Contributor

Differential Revision: D85766955

The diff exposes addNotificationHandler and addRequestHandler from RCTDevSettings. Previously, handlers were registered by accessing RCTPackagerConnection which is not a shared instance any more.

Changelog:
[GENERAL][ADDED] - Expose methods for registering packager connection handlers.

@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 29, 2025
@meta-codesync

meta-codesync Bot commented Oct 29, 2025

Copy link
Copy Markdown

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

…e bundle config (#54258)

Summary:


## Summary

It associates `RCTPackagerConnection` (previously singleton) with the `RCTDevSettings` instance, which has access to the `RCTBundleManager`, which contains the specified configuration object. The connection is now established in the `RCTDevSettings initialize`  method, called after the bundle manager is set by invoking the new `startWithBundleManager` method on the `RCTPackagerConnection`.

## Changelog:
[IOS][BREAKING] - Make `RCTPackagerConnection` instance of the `RCTDevSettings` and use bundle config.

Reviewed By: vzaidman

Differential Revision: D85247267
Summary:


The diff exposes `addNotificationHandler` and `addRequestHandler` from `RCTDevSettings`. Previously, handlers were registered by accessing `RCTPackagerConnection` which is not a shared instance any more. 

Changelog:
[GENERAL][ADDED] - Expose methods for registering packager connection handlers.

Reviewed By: cipolleschi, huntie

Differential Revision: D85766955
@meta-codesync meta-codesync Bot closed this in d9842fd Nov 14, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Nov 14, 2025
@meta-codesync

meta-codesync Bot commented Nov 14, 2025

Copy link
Copy Markdown

This pull request has been merged in d9842fd.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @coado in d9842fd

When will my fix make it into a release? | How to file a pick request?

douglowder pushed a commit to react-native-tvos/react-native-tvos that referenced this pull request Nov 15, 2025
Summary:
Pull Request resolved: react/react-native#54314

The diff exposes `addNotificationHandler` and `addRequestHandler` from `RCTDevSettings`. Previously, handlers were registered by accessing `RCTPackagerConnection` which is not a shared instance any more.

Changelog:
[GENERAL][ADDED] - Expose methods for registering packager connection handlers.

Reviewed By: cipolleschi, huntie

Differential Revision: D85766955

fbshipit-source-id: c1373d231ef82fcb2f156a7dcb6a9bf87071af87
facebook-github-bot pushed a commit that referenced this pull request Nov 27, 2025
Summary:
I *think* this is to blame for issues with HMRClient::setup() not being called in release builds.

Changelog:
[General][Removed] Revert #54314

Differential Revision: D87982319
meta-codesync Bot pushed a commit that referenced this pull request Nov 27, 2025
Summary:
Pull Request resolved: #54719

I *think* this is to blame for issues with HMRClient::setup() not being called in release builds.

Changelog:
[General][Removed] Revert #54314

Reviewed By: vzaidman

Differential Revision: D87982319

fbshipit-source-id: d80d2b33536466b67a8e205267c8037500ad4113
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. fb-exported 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.

3 participants