Skip to content

Conversation

@sammy-SC
Copy link
Contributor

Summary:
changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Feb 17, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69744400

…nc (facebook#49440)

Summary:

changelog: [internal]

move away from RCTUnsafeExecuteOnMainQueueSync in RCTSafeArea.

Differential Revision: D69662510
…Sync and main thread setup (facebook#49473)

Summary:

changelog: [internal]

Add RCTTraitCollectionProxy which synchronises access to current trait collection. This way, RCTAppearance does not need main thread setup and RCTUnsafeExecuteOnMainQueueSync

Differential Revision: D69750211
…cebook#49474)

Summary:

changelog: [internal]


Can move setup to the background setup:
1. Use RCTTraitCollectionProxy to access current trait collection to check if force touch is available.
2. UIDevice.currentDevice is thread safe and can be read safely from a background thread.

Differential Revision: D69744257
Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69744400

sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…49475)

Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…49475)

Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…49475)

Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…49475)

Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
sammy-SC added a commit to sammy-SC/react-native that referenced this pull request Feb 18, 2025
…49475)

Summary:

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Differential Revision: D69744400
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 19, 2025
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @sammy-SC in 1705f96

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1705f96.

gabrieldonadel pushed a commit to gabrieldonadel/react-native that referenced this pull request Aug 12, 2025
Summary:
Pull Request resolved: facebook#49475

changelog: [internal]

RCTNetworking does not need main thread setup, it doesn't access any main thread only resources.

Reviewed By: rshest

Differential Revision: D69744400

fbshipit-source-id: 25652c28d178a9e26fa0ede9b03fb87072094fb0
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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants