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';
11
11
12
12
import getComponentName from 'shared/getComponentName' ;
13
13
import { getStackAddendumByWorkInProgressFiber } from 'shared/ReactFiberComponentTreeHook' ;
14
- import { AsyncUpdates , PreAsyncUpdates } from './ReactTypeOfInternalContext' ;
14
+ import {
15
+ AsyncUpdates ,
16
+ FutureCompatibilityChecks ,
17
+ } from './ReactTypeOfInternalContext' ;
15
18
import warning from 'fbjs/lib/warning' ;
16
19
17
20
type LIFECYCLE =
@@ -97,7 +100,7 @@ if (__DEV__) {
97
100
while ( fiber !== null ) {
98
101
if (
99
102
fiber . internalContextTag & AsyncUpdates ||
100
- fiber . internalContextTag & PreAsyncUpdates
103
+ fiber . internalContextTag & FutureCompatibilityChecks
101
104
) {
102
105
maybeAsyncRoot = fiber ;
103
106
}
Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ import invariant from 'fbjs/lib/invariant';
26
26
import warning from 'fbjs/lib/warning' ;
27
27
28
28
import { startPhaseTimer , stopPhaseTimer } from './ReactDebugFiberPerf' ;
29
- import { AsyncUpdates , PreAsyncUpdates } from './ReactTypeOfInternalContext' ;
29
+ import {
30
+ AsyncUpdates ,
31
+ FutureCompatibilityChecks ,
32
+ } from './ReactTypeOfInternalContext' ;
30
33
import {
31
34
cacheContext ,
32
35
getMaskedContext ,
@@ -644,7 +647,7 @@ export default function(
644
647
if ( prototype . unstable_isAsyncReactComponent === true ) {
645
648
workInProgress . internalContextTag |= AsyncUpdates ;
646
649
} else if ( prototype . unstable_isPreAsyncReactComponent === true ) {
647
- workInProgress . internalContextTag |= PreAsyncUpdates ;
650
+ workInProgress . internalContextTag |= FutureCompatibilityChecks ;
648
651
}
649
652
}
650
653
@@ -653,7 +656,7 @@ export default function(
653
656
// Warn about any unsafe lifecycles on this class component.
654
657
if (
655
658
workInProgress . internalContextTag & AsyncUpdates ||
656
- workInProgress . internalContextTag & PreAsyncUpdates
659
+ workInProgress . internalContextTag & FutureCompatibilityChecks
657
660
) {
658
661
ReactDebugAsyncWarnings . recordLifecycleWarnings (
659
662
workInProgress ,
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ export type TypeOfInternalContext = number;
11
11
12
12
export const NoContext = 0b00000000 ;
13
13
export 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