Skip to content

Commit 3adf51a

Browse files
authored
fix: Disable reload-and-record action for React Native entrypoint (#152)
1 parent 0db2088 commit 3adf51a

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

front_end/core/root/Runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ export const enum ExperimentName {
320320
// React Native-specific experiments - must mirror RNExperimentName above
321321
JS_HEAP_PROFILER_ENABLE = RNExperimentName.JS_HEAP_PROFILER_ENABLE,
322322
REACT_NATIVE_SPECIFIC_UI = RNExperimentName.REACT_NATIVE_SPECIFIC_UI,
323+
NOT_REACT_NATIVE_SPECIFIC_UI = '!' + RNExperimentName.REACT_NATIVE_SPECIFIC_UI,
323324
ENABLE_PERFORMANCE_PANEL = RNExperimentName.ENABLE_PERFORMANCE_PANEL,
324325
ENABLE_NETWORK_PANEL = RNExperimentName.ENABLE_NETWORK_PANEL,
325326
}

front_end/panels/timeline/timeline-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ UI.ActionRegistration.registerActionExtension({
152152
shortcut: 'Meta+Shift+E',
153153
},
154154
],
155-
experiment: Root.Runtime.ExperimentName.REACT_NATIVE_SPECIFIC_UI, // See https://docs.google.com/document/d/1_mtLIHEd9bFQN4xWBSVDR357GaRo56khB1aOxgWDeu4/edit?tab=t.0 for context.
155+
experiment: Root.Runtime.ExperimentName.NOT_REACT_NATIVE_SPECIFIC_UI, // See https://docs.google.com/document/d/1_mtLIHEd9bFQN4xWBSVDR357GaRo56khB1aOxgWDeu4/edit?tab=t.0 for context.
156156
});
157157

158158
UI.ActionRegistration.registerActionExtension({

front_end/testing/EnvironmentHelpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ const REGISTERED_EXPERIMENTS = [
132132
Root.Runtime.ExperimentName.TIMELINE_SHOW_POST_MESSAGE_EVENTS,
133133
Root.Runtime.ExperimentName.TIMELINE_ENHANCED_TRACES,
134134
Root.Runtime.ExperimentName.REACT_NATIVE_SPECIFIC_UI,
135+
Root.Runtime.ExperimentName.NOT_REACT_NATIVE_SPECIFIC_UI,
135136
];
136137

137138
export async function initializeGlobalVars({reset = true} = {}) {

0 commit comments

Comments
 (0)