devtools: dont restore profiling data if we're profling (#22753)
Sebastian Silbermann committed
Nov 15, 2021 at 15:46 UTC
f86cd5408b3154b3aa55ca6d9d86aa3091b7b2e5
1 file changed
+3
-1
packages/react-devtools-extensions/src/main.js
+3
-1
@@ -156,7 +156,9 @@ function createPanelIfReactLoaded() {
156
supportsTimeline: isChrome,
157
supportsTraceUpdates: true,
158
});
159
- store.profilerStore.profilingData = profilingData;
159
+ if (!isProfiling) {
160
+ store.profilerStore.profilingData = profilingData;
161
+ }
162
163
// Initialize the backend only once the Store has been initialized.
164
// Otherwise the Store may miss important initial tree op codes.