[0.83] Exclude legacy Hermes targets from single host assertion#54790
Merged
huntie merged 1 commit intofacebook:0.83-stablefrom Dec 5, 2025
Merged
[0.83] Exclude legacy Hermes targets from single host assertion#54790huntie merged 1 commit intofacebook:0.83-stablefrom
huntie merged 1 commit intofacebook:0.83-stablefrom
Conversation
) 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
4 tasks
This was referenced Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Note
This is a cherry pick of #54784 into
0.83-stable.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 HermesConnectionDemuxruntime 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 trackregisteredHostsCountaccurately (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
Test Plan
Tested previously.