Skip to content

Exclude legacy Hermes targets from single host assertion#54784

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D88386623
Closed

Exclude legacy Hermes targets from single host assertion#54784
huntie wants to merge 1 commit into
react:mainfrom
huntie:export-D88386623

Conversation

@huntie

@huntie huntie commented Dec 4, 2025

Copy link
Copy Markdown
Member

Summary:

Context

This is a follow-up to D86201689 following user feedback on 0.83.0-rc.2: react-native-community/discussions-and-proposals#954 (reply in thread).

The problem was that we were incorrectly attributing any and all IInspector::addPage() calls to represent a new React Native Host being registered. However, this API also remains common to the legacy Hermes ConnectionDemux runtime target setup (which does not represent a host target).

This diff

We now fork this code path internally based on InspectorTargetCapabilities.prefersFuseboxFrontend, in order to track registeredHostsCount accurately (i.e. only for HostTarget page registrations).

Changelog:
[General][Fixed] - React Native DevTools: Fix a bug where we would incorrectly flag apps using additonal Hermes runtimes (e.g. Reanimated) as being multi-host

Differential Revision: D88386623

@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 4, 2025
@meta-codesync

meta-codesync Bot commented Dec 4, 2025

Copy link
Copy Markdown

@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D88386623.

Summary:

### Context

This is a follow-up to D86201689 following user feedback on `0.83.0-rc.2`: react-native-community/discussions-and-proposals#954 (reply in thread).

The problem was that we were incorrectly attributing any and all `IInspector::addPage()` calls to represent a new React Native Host being registered. However, this API also remains common to the legacy Hermes `ConnectionDemux` runtime target setup (which does not represent a host target).

### This diff

We now fork this code path internally based on `InspectorTargetCapabilities.prefersFuseboxFrontend`, in order to track `registeredHostsCount` accurately (i.e. **only** for HostTarget page registrations).

Changelog:
[General][Fixed] - React Native DevTools: Fix a bug where we would incorrectly flag apps using additonal Hermes runtimes (e.g. Reanimated) as being multi-host

Reviewed By: hoxyq

Differential Revision: D88386623
@meta-codesync

meta-codesync Bot commented Dec 5, 2025

Copy link
Copy Markdown

This pull request has been merged in c800503.

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @huntie in c800503

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

@huntie huntie deleted the export-D88386623 branch December 5, 2025 17:01
gabrieldonadel pushed a commit that referenced this pull request Jun 23, 2026
Summary:
Pull Request resolved: #54784

This is a follow-up to D86201689 following user feedback on `0.83.0-rc.2`: react-native-community/discussions-and-proposals#954 (reply in thread).

The problem was that we were incorrectly attributing any and all `IInspector::addPage()` calls to represent a new React Native Host being registered. However, this API also remains common to the legacy Hermes `ConnectionDemux` runtime target setup (which does not represent a host target).

We now fork this code path internally based on `InspectorTargetCapabilities.prefersFuseboxFrontend`, in order to track `registeredHostsCount` accurately (i.e. **only** for HostTarget page registrations).

Changelog:
[General][Fixed] - React Native DevTools: Fix a bug where we would incorrectly flag apps using additonal Hermes runtimes (e.g. Reanimated) as being multi-host

Reviewed By: hoxyq

Differential Revision: D88386623

fbshipit-source-id: 49a82faa6c857de41e8e9a757f5fdd850f09c3dd
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

3 participants