@@ -146,6 +146,7 @@ import type {
146
146
import type { Source } from 'react-devtools-shared/src/shared/types' ;
147
147
import { getSourceLocationByFiber } from './DevToolsFiberComponentStack' ;
148
148
import { formatOwnerStack } from '../shared/DevToolsOwnerStack' ;
149
+ import { ActivityComponent } from 'react-reconciler/src/ReactWorkTags' ;
149
150
150
151
// Kinds
151
152
const FIBER_INSTANCE = 0 ;
@@ -385,6 +386,7 @@ export function getInternalReactConstants(version: string): {
385
386
YieldComponent : - 1 , // Removed
386
387
Throw : 29 ,
387
388
ViewTransitionComponent : 30 , // Experimental
389
+ ActivityComponent : 31 ,
388
390
} ;
389
391
} else if ( gte ( version , '17.0.0-alpha' ) ) {
390
392
ReactTypeOfWork = {
@@ -421,6 +423,7 @@ export function getInternalReactConstants(version: string): {
421
423
YieldComponent : - 1 , // Removed
422
424
Throw : - 1 , // Doesn't exist yet
423
425
ViewTransitionComponent : - 1 , // Doesn't exist yet
426
+ ActivityComponent : - 1 , // Doesn't exist yet
424
427
} ;
425
428
} else if ( gte ( version , '16.6.0-beta.0' ) ) {
426
429
ReactTypeOfWork = {
@@ -457,6 +460,7 @@ export function getInternalReactConstants(version: string): {
457
460
YieldComponent : - 1 , // Removed
458
461
Throw : - 1 , // Doesn't exist yet
459
462
ViewTransitionComponent : - 1 , // Doesn't exist yet
463
+ ActivityComponent : - 1 , // Doesn't exist yet
460
464
} ;
461
465
} else if ( gte ( version , '16.4.3-alpha' ) ) {
462
466
ReactTypeOfWork = {
@@ -493,6 +497,7 @@ export function getInternalReactConstants(version: string): {
493
497
YieldComponent : - 1 , // Removed
494
498
Throw : - 1 , // Doesn't exist yet
495
499
ViewTransitionComponent : - 1 , // Doesn't exist yet
500
+ ActivityComponent : - 1 , // Doesn't exist yet
496
501
} ;
497
502
} else {
498
503
ReactTypeOfWork = {
@@ -529,6 +534,7 @@ export function getInternalReactConstants(version: string): {
529
534
YieldComponent : 9 ,
530
535
Throw : - 1 , // Doesn't exist yet
531
536
ViewTransitionComponent : - 1 , // Doesn't exist yet
537
+ ActivityComponent : - 1 , // Doesn't exist yet
532
538
} ;
533
539
}
534
540
// **********************************************************
@@ -622,6 +628,8 @@ export function getInternalReactConstants(version: string): {
622
628
}
623
629
624
630
switch ( tag ) {
631
+ case ActivityComponent :
632
+ return 'Activity' ;
625
633
case CacheComponent :
626
634
return 'Cache' ;
627
635
case ClassComponent :
@@ -1480,6 +1488,7 @@ export function attach(
1480
1488
return true ;
1481
1489
case HostPortal :
1482
1490
case HostText :
1491
+ case ActivityComponent :
1483
1492
case LegacyHiddenComponent :
1484
1493
case OffscreenComponent :
1485
1494
case Throw :
0 commit comments