File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed 
packages/react-reconciler/src Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import type {Fiber} from './ReactFiber';
1111
1212import  getComponentName  from  'shared/getComponentName' ; 
1313import  { getStackAddendumByWorkInProgressFiber }  from  'shared/ReactFiberComponentTreeHook' ; 
14- import  { AsyncUpdates ,  PreAsyncUpdates }  from  './ReactTypeOfInternalContext' ; 
14+ import  { 
15+   AsyncUpdates , 
16+   FutureCompatibilityChecks , 
17+ }  from  './ReactTypeOfInternalContext' ; 
1518import  warning  from  'fbjs/lib/warning' ; 
1619
1720type  LIFECYCLE  = 
@@ -97,7 +100,7 @@ if (__DEV__) {
97100    while  ( fiber  !==  null )  { 
98101      if  ( 
99102        fiber . internalContextTag  &  AsyncUpdates  || 
100-         fiber . internalContextTag  &  PreAsyncUpdates 
103+         fiber . internalContextTag  &  FutureCompatibilityChecks 
101104      )  { 
102105        maybeAsyncRoot  =  fiber ; 
103106      } 
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ import invariant from 'fbjs/lib/invariant';
2626import  warning  from  'fbjs/lib/warning' ; 
2727
2828import  { startPhaseTimer ,  stopPhaseTimer }  from  './ReactDebugFiberPerf' ; 
29- import  { AsyncUpdates ,  PreAsyncUpdates }  from  './ReactTypeOfInternalContext' ; 
29+ import  { 
30+   AsyncUpdates , 
31+   FutureCompatibilityChecks , 
32+ }  from  './ReactTypeOfInternalContext' ; 
3033import  { 
3134  cacheContext , 
3235  getMaskedContext , 
@@ -644,7 +647,7 @@ export default function(
644647      if  ( prototype . unstable_isAsyncReactComponent  ===  true )  { 
645648        workInProgress . internalContextTag  |=  AsyncUpdates ; 
646649      }  else  if  ( prototype . unstable_isPreAsyncReactComponent  ===  true )  { 
647-         workInProgress . internalContextTag  |=  PreAsyncUpdates ; 
650+         workInProgress . internalContextTag  |=  FutureCompatibilityChecks ; 
648651      } 
649652    } 
650653
@@ -653,7 +656,7 @@ export default function(
653656      // Warn about any unsafe lifecycles on this class component. 
654657      if  ( 
655658        workInProgress . internalContextTag  &  AsyncUpdates  || 
656-         workInProgress . internalContextTag  &  PreAsyncUpdates 
659+         workInProgress . internalContextTag  &  FutureCompatibilityChecks 
657660      )  { 
658661        ReactDebugAsyncWarnings . recordLifecycleWarnings ( 
659662          workInProgress , 
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ export type TypeOfInternalContext = number;
1111
1212export  const  NoContext  =  0b00000000 ; 
1313export  const  AsyncUpdates  =  0b00000001 ; 
14- export  const  PreAsyncUpdates  =  0b00000010 ; 
14+ export  const  FutureCompatibilityChecks  =  0b00000010 ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments