Skip to content

expose HMRClient for use in Expo #53081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EvanBacon
Copy link
Contributor

Summary:

While upgrading Expo to the latest React Native, we're seeing a number of warnings from internal imports. We've been able to work around most of these expo/expo#38587 expo/expo#38588 expo/expo#38495 but some are harder to work around.

Screenshot 2025-08-05 at 4 36 29 PM

This PR exposes HMRClient module which we use for async bundle loading. While there is an new upstream version of __loadBundleAsync, it isn't enabled in production and doesn't give us the flexibility to send headers back to the server (which we use for React Server Components on native).

Changelog:

[GENERAL] [ADDED] - Export HMRClient from react-native.

Test Plan:

@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 Aug 5, 2025
@facebook-github-bot facebook-github-bot added p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Aug 5, 2025
@cortinico cortinico requested a review from huntie August 6, 2025 09:14
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. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants