Skip to content

React Native#53651

Closed
yury-dymov wants to merge 1 commit into
facebook:mainfrom
yury-dymov:export-D81727845
Closed

React Native#53651
yury-dymov wants to merge 1 commit into
facebook:mainfrom
yury-dymov:export-D81727845

Conversation

@yury-dymov
Copy link
Copy Markdown

Summary:

Stack

We aim to remove +load methods from the codebase to reduce pre-main startup time and to unblock enabling startup optimizations

Diff

Diff removes +load API from RCT_EXPORT_MODULE macro.
It introduces new parameter for react_native_module_provider function eager, which adds legacy RN modules to newly created socket REACT_MODULE_EAGER_REGISTRATION_SOCKET. This socket is invoked right before the RCTBridge is being initialized.

Impact: 137 static loaders are removed from the startup path

Differential Revision: D81727845

@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 Sep 8, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Summary:
Pull Request resolved: facebook#53651

## Stack
We aim to remove +load methods from the codebase to reduce pre-main startup time and to unblock enabling startup optimizations

# Diff
Diff removes `+load` API from `RCT_EXPORT_MODULE` macro.
It introduces new parameter for `react_native_module_provider` function `eager`, which adds legacy RN modules to newly created socket `REACT_MODULE_EAGER_REGISTRATION_SOCKET`. This socket is invoked right before the RCTBridge is being initialized.

Impact: 137 static loaders are removed from the startup path

Reviewed By: RSNara

Differential Revision: D81727845
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@yury-dymov has exported this pull request. If you are a Meta employee, you can view the originating diff in D81727845.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Sep 12, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in a7dc505.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by Yury Dymov in a7dc505

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

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