@@ -24,6 +24,7 @@ import {
2424 ElementTypeRoot ,
2525 ElementTypeSuspense ,
2626 ElementTypeSuspenseList ,
27+ ElementTypeTracingMarker ,
2728 StrictMode ,
2829} from 'react-devtools-shared/src/types' ;
2930import {
@@ -247,6 +248,8 @@ export function getInternalReactConstants(
247248 SimpleMemoComponent : 15 ,
248249 SuspenseComponent : 13 ,
249250 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
250253 YieldComponent : - 1 , // Removed
251254 } ;
252255 } else if ( gte ( version , '17.0.0-alpha' ) ) {
@@ -277,6 +280,7 @@ export function getInternalReactConstants(
277280 SimpleMemoComponent : 15 ,
278281 SuspenseComponent : 13 ,
279282 SuspenseListComponent : 19 , // Experimental
283+ TracingMarkerComponent : - 1 , // Doesn't exist yet
280284 YieldComponent : - 1 , // Removed
281285 } ;
282286 } else if ( gte ( version , '16.6.0-beta.0' ) ) {
@@ -307,6 +311,7 @@ export function getInternalReactConstants(
307311 SimpleMemoComponent : 15 ,
308312 SuspenseComponent : 13 ,
309313 SuspenseListComponent : 19 , // Experimental
314+ TracingMarkerComponent : - 1 , // Doesn't exist yet
310315 YieldComponent : - 1 , // Removed
311316 } ;
312317 } else if ( gte ( version , '16.4.3-alpha' ) ) {
@@ -337,6 +342,7 @@ export function getInternalReactConstants(
337342 SimpleMemoComponent : - 1 , // Doesn't exist yet
338343 SuspenseComponent : 16 ,
339344 SuspenseListComponent : - 1 , // Doesn't exist yet
345+ TracingMarkerComponent : - 1 , // Doesn't exist yet
340346 YieldComponent : - 1 , // Removed
341347 } ;
342348 } else {
@@ -367,6 +373,7 @@ export function getInternalReactConstants(
367373 SimpleMemoComponent : - 1 , // Doesn't exist yet
368374 SuspenseComponent : 16 ,
369375 SuspenseListComponent : - 1 , // Doesn't exist yet
376+ TracingMarkerComponent : - 1 , // Doesn't exist yet
370377 YieldComponent : 9 ,
371378 } ;
372379 }
@@ -405,6 +412,7 @@ export function getInternalReactConstants(
405412 SimpleMemoComponent,
406413 SuspenseComponent,
407414 SuspenseListComponent,
415+ TracingMarkerComponent,
408416 } = ReactTypeOfWork ;
409417
410418 function resolveFiberType ( type : any ) {
@@ -484,6 +492,8 @@ export function getInternalReactConstants(
484492 return 'SuspenseList' ;
485493 case Profiler :
486494 return 'Profiler' ;
495+ case TracingMarkerComponent :
496+ return 'TracingMarker' ;
487497 default :
488498 const typeSymbol = getTypeSymbol ( type ) ;
489499
@@ -583,6 +593,7 @@ export function attach(
583593 SimpleMemoComponent,
584594 SuspenseComponent,
585595 SuspenseListComponent,
596+ TracingMarkerComponent,
586597 } = ReactTypeOfWork ;
587598 const {
588599 ImmediatePriority,
@@ -1044,6 +1055,8 @@ export function attach(
10441055 return ElementTypeSuspense ;
10451056 case SuspenseListComponent :
10461057 return ElementTypeSuspenseList ;
1058+ case TracingMarkerComponent :
1059+ return ElementTypeTracingMarker ;
10471060 default :
10481061 const typeSymbol = getTypeSymbol ( type ) ;
10491062
0 commit comments