Skip to content

Conversation

@cortinico
Copy link
Contributor

Summary:
While working on internal apps, I've noticed that there are scenarios where more than one PackagerConnectionSettings is instantiated.

What that happens, we're not able to reliability change the host anymore, because the state is scattered through the various PackagerConnectionSettings. Instead the state should be retained as a singleton.

Differential Revision: D88945232

Summary:
While working on internal apps, I've noticed that there are scenarios where more than one `PackagerConnectionSettings` is instantiated. 

What that happens, we're not able to reliability change the host anymore, because the state is scattered through the various `PackagerConnectionSettings`. Instead the state should be retained as a singleton.

Differential Revision: D88945232
@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 Dec 11, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 11, 2025

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

cortinico added a commit to cortinico/react-native that referenced this pull request Dec 11, 2025
…k#54852)

Summary:

While working on internal apps, I've noticed that there are scenarios where more than one `PackagerConnectionSettings` is instantiated. 

What that happens, we're not able to reliability change the host anymore, because the state is scattered through the various `PackagerConnectionSettings`. Instead the state should be retained as a singleton.

Changelog:
[Internal] [Changed] - Move state of PackagerConnectionSettings to companion object

Reviewed By: vzaidman

Differential Revision: D88945232
cortinico added a commit to cortinico/react-native that referenced this pull request Dec 11, 2025
…k#54852)

Summary:

While working on internal apps, I've noticed that there are scenarios where more than one `PackagerConnectionSettings` is instantiated. 

What that happens, we're not able to reliability change the host anymore, because the state is scattered through the various `PackagerConnectionSettings`. Instead the state should be retained as a singleton.

Changelog:
[Internal] [Changed] - Move state of PackagerConnectionSettings to companion object

Reviewed By: vzaidman

Differential Revision: D88945232
@meta-codesync meta-codesync bot closed this in 28d6ba1 Dec 11, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 11, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cortinico in 28d6ba1

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

@meta-codesync
Copy link

meta-codesync bot commented Dec 11, 2025

This pull request has been merged in 28d6ba1.

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 11, 2025
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 Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants