@@ -146,6 +146,7 @@ import type {
146146import type { Source } from 'react-devtools-shared/src/shared/types' ;
147147import { getSourceLocationByFiber } from './DevToolsFiberComponentStack' ;
148148import { formatOwnerStack } from '../shared/DevToolsOwnerStack' ;
149+ import { ActivityComponent } from 'react-reconciler/src/ReactWorkTags' ;
149150
150151// Kinds
151152const FIBER_INSTANCE = 0 ;
@@ -385,6 +386,7 @@ export function getInternalReactConstants(version: string): {
385386 YieldComponent : - 1 , // Removed
386387 Throw : 29 ,
387388 ViewTransitionComponent : 30 , // Experimental
389+ ActivityComponent : 31 ,
388390 } ;
389391 } else if ( gte ( version , '17.0.0-alpha' ) ) {
390392 ReactTypeOfWork = {
@@ -421,6 +423,7 @@ export function getInternalReactConstants(version: string): {
421423 YieldComponent : - 1 , // Removed
422424 Throw : - 1 , // Doesn't exist yet
423425 ViewTransitionComponent : - 1 , // Doesn't exist yet
426+ ActivityComponent : - 1 , // Doesn't exist yet
424427 } ;
425428 } else if ( gte ( version , '16.6.0-beta.0' ) ) {
426429 ReactTypeOfWork = {
@@ -457,6 +460,7 @@ export function getInternalReactConstants(version: string): {
457460 YieldComponent : - 1 , // Removed
458461 Throw : - 1 , // Doesn't exist yet
459462 ViewTransitionComponent : - 1 , // Doesn't exist yet
463+ ActivityComponent : - 1 , // Doesn't exist yet
460464 } ;
461465 } else if ( gte ( version , '16.4.3-alpha' ) ) {
462466 ReactTypeOfWork = {
@@ -493,6 +497,7 @@ export function getInternalReactConstants(version: string): {
493497 YieldComponent : - 1 , // Removed
494498 Throw : - 1 , // Doesn't exist yet
495499 ViewTransitionComponent : - 1 , // Doesn't exist yet
500+ ActivityComponent : - 1 , // Doesn't exist yet
496501 } ;
497502 } else {
498503 ReactTypeOfWork = {
@@ -529,6 +534,7 @@ export function getInternalReactConstants(version: string): {
529534 YieldComponent : 9 ,
530535 Throw : - 1 , // Doesn't exist yet
531536 ViewTransitionComponent : - 1 , // Doesn't exist yet
537+ ActivityComponent : - 1 , // Doesn't exist yet
532538 } ;
533539 }
534540 // **********************************************************
@@ -622,6 +628,8 @@ export function getInternalReactConstants(version: string): {
622628 }
623629
624630 switch ( tag ) {
631+ case ActivityComponent :
632+ return 'Activity' ;
625633 case CacheComponent :
626634 return 'Cache' ;
627635 case ClassComponent :
@@ -1480,6 +1488,7 @@ export function attach(
14801488 return true ;
14811489 case HostPortal :
14821490 case HostText :
1491+ case ActivityComponent :
14831492 case LegacyHiddenComponent :
14841493 case OffscreenComponent :
14851494 case Throw :
0 commit comments