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({
639
639
suspenseEvent . duration = getRelativeTime ( ) - suspenseEvent . timestamp ;
640
640
suspenseEvent . resolution = 'resolved' ;
641
641
642
- markAndClear ( `--suspense-resolved-${ id } -${ componentName } ` ) ;
642
+ if ( supportsUserTimingV3 ) {
643
+ markAndClear ( `--suspense-resolved-${ id } -${ componentName } ` ) ;
644
+ }
643
645
} ,
644
646
( ) => {
645
647
suspenseEvent . duration = getRelativeTime ( ) - suspenseEvent . timestamp ;
646
648
suspenseEvent . resolution = 'rejected' ;
647
649
648
- markAndClear ( `--suspense-rejected-${ id } -${ componentName } ` ) ;
650
+ if ( supportsUserTimingV3 ) {
651
+ markAndClear ( `--suspense-rejected-${ id } -${ componentName } ` ) ;
652
+ }
649
653
} ,
650
654
) ;
651
655
}
You can’t perform that action at this time.
0 commit comments