Skip to content

RCTNetworking does not require main thread setup#49475

Closed
sammy-SC wants to merge 4 commits into
react:mainfrom
sammy-SC:export-D69744400
Closed

RCTNetworking does not require main thread setup#49475
sammy-SC wants to merge 4 commits into
react:mainfrom
sammy-SC:export-D69744400

Conversation

@sammy-SC

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

…nc (#49440)

Summary:

changelog: [internal]

move away from RCTUnsafeExecuteOnMainQueueSync in RCTSafeArea.

Differential Revision: D69662510
…Sync and main thread setup (#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
…9474)

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
Copy Markdown
Contributor

This pull request was exported from Phabricator. 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
Copy Markdown
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
Copy Markdown
Contributor

This pull request has been merged in 1705f96.

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