devtools: dont restore profiling data if we're profling (#22753)

This commit is contained in:
Sebastian Silbermann
2021-11-15 10:46:17 -05:00
committed by GitHub
parent c0c71a8685
commit f86cd5408b
+3 -1
View File
@@ -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.