mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
devtools: dont restore profiling data if we're profling (#22753)
This commit is contained in:
+3
-1
@@ -156,7 +156,9 @@ function createPanelIfReactLoaded() {
|
||||
supportsTimeline: isChrome,
|
||||
supportsTraceUpdates: true,
|
||||
});
|
||||
store.profilerStore.profilingData = profilingData;
|
||||
if (!isProfiling) {
|
||||
store.profilerStore.profilingData = profilingData;
|
||||
}
|
||||
|
||||
// Initialize the backend only once the Store has been initialized.
|
||||
// Otherwise the Store may miss important initial tree op codes.
|
||||
|
||||
Reference in New Issue
Block a user