Skip to content

Commit f911855

Browse files
eps1lonzhengjitf
authored andcommitted
devtools: dont restore profiling data if we're profling (facebook#22753)
1 parent 11831b4 commit f911855

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

Lines changed: 3 additions & 1 deletion
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)