Skip to content

Commit 8c039ba

Browse files
author
Brian Vaughn
committed
Update preprocessor to "support" instant events
These are no-ops for us, but adding recognition of the event type will prevent profiles imported from e.g. Chrome Canary from thorwing with an "unrecognized event" error. (This will resolve issue #20767.)
1 parent b99c38f commit 8c039ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-devtools-scheduling-profiler/src/import-worker/preprocessData.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ function processTimelineEvent(
390390
// TODO: Begin user timing measure
391391
} else if (ph === 'e') {
392392
// TODO: End user timing measure
393+
} else if (ph === 'i' || ph === 'I') {
394+
// Instant events.
395+
// Note that the capital "I" is a deprecated value that exists in Chrome Canary traces.
393396
} // eslint-disable-line brace-style
394397

395398
// Unrecognized event

0 commit comments

Comments
 (0)