@@ -17,10 +17,6 @@ import {FuseboxWindowTitleManager} from './FuseboxWindowTitleManager.js';
1717const { html, render} = Lit ;
1818
1919const UIStrings = {
20- /**
21- * @description Message for the "settings changed" banner shown when a reload is required for the Network panel.
22- */
23- reloadRequiredForNetworkPanelMessage : 'The Network panel is now available for dogfooding. Please reload to access it.' ,
2420 /**
2521 * @description Title shown when Network inspection is disabled due to multiple React Native hosts.
2622 */
@@ -86,8 +82,10 @@ export class FuseboxFeatureObserver implements
8682 this . #hideUnsupportedFeaturesForProfilingBuilds( ) ;
8783 }
8884
89- if ( unstable_networkInspectionEnabled ) {
90- this . #ensureNetworkPanelEnabled( ) ;
85+ // Hide Network panel entirely if backend support is disabled
86+ // TODO(huntie): Remove after fbsource rollout is complete
87+ if ( ! unstable_networkInspectionEnabled && ! Root . Runtime . conditions . reactNativeExpoNetworkPanel ( ) ) {
88+ this . #hideNetworkPanel( ) ;
9189 }
9290 }
9391
@@ -127,19 +125,11 @@ export class FuseboxFeatureObserver implements
127125 } ) ;
128126 }
129127
130- #ensureNetworkPanelEnabled( ) : void {
131- if ( Root . Runtime . experiments . isEnabled ( Root . Runtime . ExperimentName . ENABLE_NETWORK_PANEL ) ) {
132- return ;
133- }
134-
135- Root . Runtime . experiments . setEnabled (
136- Root . Runtime . ExperimentName . ENABLE_NETWORK_PANEL ,
137- true ,
138- ) ;
139-
140- UI . InspectorView ?. InspectorView ?. instance ( ) ?. displayReloadRequiredWarning (
141- i18nString ( UIStrings . reloadRequiredForNetworkPanelMessage ) ,
142- ) ;
128+ #hideNetworkPanel( ) : void {
129+ const viewManager = UI . ViewManager . ViewManager . instance ( ) ;
130+ void viewManager . resolveLocation ( UI . ViewManager . ViewLocationValues . PANEL ) . then ( location => {
131+ location ?. removeView ( viewManager . view ( 'network' ) ) ;
132+ } ) ;
143133 }
144134
145135 #disableSingleHostOnlyFeatures( ) : void {
0 commit comments