Skip to content

Move state of PackagerConnectionSettings to companion object#54852

Closed
cortinico wants to merge 1 commit intofacebook:mainfrom
cortinico:export-D88945232
Closed

Move state of PackagerConnectionSettings to companion object#54852
cortinico wants to merge 1 commit intofacebook:mainfrom
cortinico:export-D88945232

Conversation

@cortinico
Copy link
Copy Markdown
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
Copy Markdown

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.

@react-native-bot
Copy link
Copy Markdown
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
Copy Markdown

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