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

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