File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -639,13 +639,17 @@ export function createProfilingHooks({
639639 suspenseEvent . duration = getRelativeTime ( ) - suspenseEvent . timestamp ;
640640 suspenseEvent . resolution = 'resolved' ;
641641
642- markAndClear ( `--suspense-resolved-${ id } -${ componentName } ` ) ;
642+ if ( supportsUserTimingV3 ) {
643+ markAndClear ( `--suspense-resolved-${ id } -${ componentName } ` ) ;
644+ }
643645 } ,
644646 ( ) => {
645647 suspenseEvent . duration = getRelativeTime ( ) - suspenseEvent . timestamp ;
646648 suspenseEvent . resolution = 'rejected' ;
647649
648- markAndClear ( `--suspense-rejected-${ id } -${ componentName } ` ) ;
650+ if ( supportsUserTimingV3 ) {
651+ markAndClear ( `--suspense-rejected-${ id } -${ componentName } ` ) ;
652+ }
649653 } ,
650654 ) ;
651655 }
You can’t perform that action at this time.
0 commit comments