@@ -24,6 +24,7 @@ import {
24
24
ElementTypeRoot ,
25
25
ElementTypeSuspense ,
26
26
ElementTypeSuspenseList ,
27
+ ElementTypeTracingMarker ,
27
28
StrictMode ,
28
29
} from 'react-devtools-shared/src/types' ;
29
30
import {
@@ -247,6 +248,8 @@ export function getInternalReactConstants(
247
248
SimpleMemoComponent : 15 ,
248
249
SuspenseComponent : 13 ,
249
250
SuspenseListComponent : 19 , // Experimental
251
+ TracingMarkerComponent : 25 , // Experimental - This is technically in 18 but we don't
252
+ // want to fork again so we're adding it here instead
250
253
YieldComponent : - 1 , // Removed
251
254
} ;
252
255
} else if ( gte ( version , '17.0.0-alpha' ) ) {
@@ -277,6 +280,7 @@ export function getInternalReactConstants(
277
280
SimpleMemoComponent : 15 ,
278
281
SuspenseComponent : 13 ,
279
282
SuspenseListComponent : 19 , // Experimental
283
+ TracingMarkerComponent : - 1 , // Doesn't exist yet
280
284
YieldComponent : - 1 , // Removed
281
285
} ;
282
286
} else if ( gte ( version , '16.6.0-beta.0' ) ) {
@@ -307,6 +311,7 @@ export function getInternalReactConstants(
307
311
SimpleMemoComponent : 15 ,
308
312
SuspenseComponent : 13 ,
309
313
SuspenseListComponent : 19 , // Experimental
314
+ TracingMarkerComponent : - 1 , // Doesn't exist yet
310
315
YieldComponent : - 1 , // Removed
311
316
} ;
312
317
} else if ( gte ( version , '16.4.3-alpha' ) ) {
@@ -337,6 +342,7 @@ export function getInternalReactConstants(
337
342
SimpleMemoComponent : - 1 , // Doesn't exist yet
338
343
SuspenseComponent : 16 ,
339
344
SuspenseListComponent : - 1 , // Doesn't exist yet
345
+ TracingMarkerComponent : - 1 , // Doesn't exist yet
340
346
YieldComponent : - 1 , // Removed
341
347
} ;
342
348
} else {
@@ -367,6 +373,7 @@ export function getInternalReactConstants(
367
373
SimpleMemoComponent : - 1 , // Doesn't exist yet
368
374
SuspenseComponent : 16 ,
369
375
SuspenseListComponent : - 1 , // Doesn't exist yet
376
+ TracingMarkerComponent : - 1 , // Doesn't exist yet
370
377
YieldComponent : 9 ,
371
378
} ;
372
379
}
@@ -405,6 +412,7 @@ export function getInternalReactConstants(
405
412
SimpleMemoComponent,
406
413
SuspenseComponent,
407
414
SuspenseListComponent,
415
+ TracingMarkerComponent,
408
416
} = ReactTypeOfWork ;
409
417
410
418
function resolveFiberType ( type : any ) {
@@ -484,6 +492,8 @@ export function getInternalReactConstants(
484
492
return 'SuspenseList' ;
485
493
case Profiler :
486
494
return 'Profiler' ;
495
+ case TracingMarkerComponent :
496
+ return 'TracingMarker' ;
487
497
default :
488
498
const typeSymbol = getTypeSymbol ( type ) ;
489
499
@@ -583,6 +593,7 @@ export function attach(
583
593
SimpleMemoComponent,
584
594
SuspenseComponent,
585
595
SuspenseListComponent,
596
+ TracingMarkerComponent,
586
597
} = ReactTypeOfWork ;
587
598
const {
588
599
ImmediatePriority,
@@ -1044,6 +1055,8 @@ export function attach(
1044
1055
return ElementTypeSuspense ;
1045
1056
case SuspenseListComponent :
1046
1057
return ElementTypeSuspenseList ;
1058
+ case TracingMarkerComponent :
1059
+ return ElementTypeTracingMarker ;
1047
1060
default :
1048
1061
const typeSymbol = getTypeSymbol ( type ) ;
1049
1062
0 commit comments