Commit 952b51a 1 parent e776355 commit 952b51a Copy full SHA for 952b51a
File tree 3 files changed +6
-6
lines changed
packages/react-reconciler/src
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ 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 { AsyncUpdates , FutureCompatibilityChecks } from './ReactTypeOfInternalContext' ;
15
15
import warning from 'fbjs/lib/warning' ;
16
16
17
17
type LIFECYCLE =
@@ -97,7 +97,7 @@ if (__DEV__) {
97
97
while ( fiber !== null ) {
98
98
if (
99
99
fiber . internalContextTag & AsyncUpdates ||
100
- fiber . internalContextTag & PreAsyncUpdates
100
+ fiber . internalContextTag & FutureCompatibilityChecks
101
101
) {
102
102
maybeAsyncRoot = fiber ;
103
103
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ 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 { AsyncUpdates , FutureCompatibilityChecks } from './ReactTypeOfInternalContext' ;
30
30
import {
31
31
cacheContext ,
32
32
getMaskedContext ,
@@ -644,7 +644,7 @@ export default function(
644
644
if ( prototype . unstable_isAsyncReactComponent === true ) {
645
645
workInProgress . internalContextTag |= AsyncUpdates ;
646
646
} else if ( prototype . unstable_isPreAsyncReactComponent === true ) {
647
- workInProgress . internalContextTag |= PreAsyncUpdates ;
647
+ workInProgress . internalContextTag |= FutureCompatibilityChecks ;
648
648
}
649
649
}
650
650
@@ -653,7 +653,7 @@ export default function(
653
653
// Warn about any unsafe lifecycles on this class component.
654
654
if (
655
655
workInProgress . internalContextTag & AsyncUpdates ||
656
- workInProgress . internalContextTag & PreAsyncUpdates
656
+ workInProgress . internalContextTag & FutureCompatibilityChecks
657
657
) {
658
658
ReactDebugAsyncWarnings . recordLifecycleWarnings (
659
659
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