Skip to content

Commit f86cd54

Browse files
authored
devtools: dont restore profiling data if we're profling (#22753)
1 parent c0c71a8 commit f86cd54

File tree

1 file changed

+3
-1
lines changed
  • packages/react-devtools-extensions/src

1 file changed

+3
-1
lines changed

packages/react-devtools-extensions/src/main.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ function createPanelIfReactLoaded() {
156156
supportsTimeline: isChrome,
157157
supportsTraceUpdates: true,
158158
});
159-
store.profilerStore.profilingData = profilingData;
159+
if (!isProfiling) {
160+
store.profilerStore.profilingData = profilingData;
161+
}
160162

161163
// Initialize the backend only once the Store has been initialized.
162164
// Otherwise the Store may miss important initial tree op codes.

0 commit comments

Comments
 (0)