@@ -24,7 +24,10 @@ import type {FiberRoot} from './ReactInternalTypes';
2424import type { OpaqueIDType } from './ReactFiberHostConfig' ;
2525
2626import ReactSharedInternals from 'shared/ReactSharedInternals' ;
27- import { enableDebugTracing } from 'shared/ReactFeatureFlags' ;
27+ import {
28+ enableDebugTracing ,
29+ enableNewReconciler ,
30+ } from 'shared/ReactFeatureFlags' ;
2831
2932import { markRootExpiredAtTime } from './ReactFiberRoot.old' ;
3033import { NoMode , BlockingMode , DebugTracingMode } from './ReactTypeOfMode' ;
@@ -1757,6 +1760,8 @@ export const ContextOnlyDispatcher: Dispatcher = {
17571760 useTransition : throwInvalidHookError ,
17581761 useMutableSource : throwInvalidHookError ,
17591762 useOpaqueIdentifier : throwInvalidHookError ,
1763+
1764+ unstable_isNewReconciler : enableNewReconciler ,
17601765} ;
17611766
17621767const HooksDispatcherOnMount: Dispatcher = {
@@ -1777,6 +1782,8 @@ const HooksDispatcherOnMount: Dispatcher = {
17771782 useTransition : mountTransition ,
17781783 useMutableSource : mountMutableSource ,
17791784 useOpaqueIdentifier : mountOpaqueIdentifier ,
1785+
1786+ unstable_isNewReconciler : enableNewReconciler ,
17801787} ;
17811788
17821789const HooksDispatcherOnUpdate: Dispatcher = {
@@ -1797,6 +1804,8 @@ const HooksDispatcherOnUpdate: Dispatcher = {
17971804 useTransition : updateTransition ,
17981805 useMutableSource : updateMutableSource ,
17991806 useOpaqueIdentifier : updateOpaqueIdentifier ,
1807+
1808+ unstable_isNewReconciler : enableNewReconciler ,
18001809} ;
18011810
18021811const HooksDispatcherOnRerender: Dispatcher = {
@@ -1817,6 +1826,8 @@ const HooksDispatcherOnRerender: Dispatcher = {
18171826 useTransition : rerenderTransition ,
18181827 useMutableSource : updateMutableSource ,
18191828 useOpaqueIdentifier : rerenderOpaqueIdentifier ,
1829+
1830+ unstable_isNewReconciler : enableNewReconciler ,
18201831} ;
18211832
18221833let HooksDispatcherOnMountInDEV: Dispatcher | null = null;
@@ -1979,6 +1990,8 @@ if (__DEV__) {
19791990 mountHookTypesDev ( ) ;
19801991 return mountOpaqueIdentifier ( ) ;
19811992 } ,
1993+
1994+ unstable_isNewReconciler: enableNewReconciler,
19821995 } ;
19831996
19841997 HooksDispatcherOnMountWithHookTypesInDEV = {
@@ -2109,6 +2122,8 @@ if (__DEV__) {
21092122 updateHookTypesDev ( ) ;
21102123 return mountOpaqueIdentifier ( ) ;
21112124 } ,
2125+
2126+ unstable_isNewReconciler: enableNewReconciler,
21122127 } ;
21132128
21142129 HooksDispatcherOnUpdateInDEV = {
@@ -2239,6 +2254,8 @@ if (__DEV__) {
22392254 updateHookTypesDev ( ) ;
22402255 return updateOpaqueIdentifier ( ) ;
22412256 } ,
2257+
2258+ unstable_isNewReconciler: enableNewReconciler,
22422259 } ;
22432260
22442261 HooksDispatcherOnRerenderInDEV = {
@@ -2370,6 +2387,8 @@ if (__DEV__) {
23702387 updateHookTypesDev ( ) ;
23712388 return rerenderOpaqueIdentifier ( ) ;
23722389 } ,
2390+
2391+ unstable_isNewReconciler: enableNewReconciler,
23732392 } ;
23742393
23752394 InvalidNestedHooksDispatcherOnMountInDEV = {
@@ -2516,6 +2535,8 @@ if (__DEV__) {
25162535 mountHookTypesDev ( ) ;
25172536 return mountOpaqueIdentifier ( ) ;
25182537 } ,
2538+
2539+ unstable_isNewReconciler: enableNewReconciler,
25192540 } ;
25202541
25212542 InvalidNestedHooksDispatcherOnUpdateInDEV = {
@@ -2662,6 +2683,8 @@ if (__DEV__) {
26622683 updateHookTypesDev ( ) ;
26632684 return updateOpaqueIdentifier ( ) ;
26642685 } ,
2686+
2687+ unstable_isNewReconciler: enableNewReconciler,
26652688 } ;
26662689
26672690 InvalidNestedHooksDispatcherOnRerenderInDEV = {
@@ -2809,5 +2832,7 @@ if (__DEV__) {
28092832 updateHookTypesDev ( ) ;
28102833 return rerenderOpaqueIdentifier ( ) ;
28112834 } ,
2835+
2836+ unstable_isNewReconciler: enableNewReconciler,
28122837 } ;
28132838}
0 commit comments