@@ -26,7 +26,6 @@ import {
26
26
enableSchedulingProfiler ,
27
27
warnAboutDeprecatedLifecycles ,
28
28
enableLazyContextPropagation ,
29
- enableStrictEffects ,
30
29
} from 'shared/ReactFeatureFlags' ;
31
30
import ReactStrictModeWarnings from './ReactStrictModeWarnings.new' ;
32
31
import { isMounted } from './ReactFiberTreeReflection' ;
@@ -908,11 +907,7 @@ function mountClassInstance(
908
907
909
908
if ( typeof instance . componentDidMount === 'function' ) {
910
909
let fiberFlags : Flags = Update | LayoutStatic ;
911
- if (
912
- __DEV__ &&
913
- enableStrictEffects &&
914
- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
915
- ) {
910
+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
916
911
fiberFlags |= MountLayoutDev ;
917
912
}
918
913
workInProgress . flags |= fiberFlags ;
@@ -986,11 +981,7 @@ function resumeMountClassInstance(
986
981
// effect even though we're bailing out, so that cWU/cDU are called.
987
982
if ( typeof instance . componentDidMount === 'function' ) {
988
983
let fiberFlags : Flags = Update | LayoutStatic ;
989
- if (
990
- __DEV__ &&
991
- enableStrictEffects &&
992
- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
993
- ) {
984
+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
994
985
fiberFlags |= MountLayoutDev ;
995
986
}
996
987
workInProgress . flags |= fiberFlags ;
@@ -1037,11 +1028,7 @@ function resumeMountClassInstance(
1037
1028
}
1038
1029
if ( typeof instance . componentDidMount === 'function' ) {
1039
1030
let fiberFlags : Flags = Update | LayoutStatic ;
1040
- if (
1041
- __DEV__ &&
1042
- enableStrictEffects &&
1043
- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
1044
- ) {
1031
+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
1045
1032
fiberFlags |= MountLayoutDev ;
1046
1033
}
1047
1034
workInProgress . flags |= fiberFlags ;
@@ -1051,11 +1038,7 @@ function resumeMountClassInstance(
1051
1038
// effect even though we're bailing out, so that cWU/cDU are called.
1052
1039
if ( typeof instance . componentDidMount === 'function' ) {
1053
1040
let fiberFlags : Flags = Update | LayoutStatic ;
1054
- if (
1055
- __DEV__ &&
1056
- enableStrictEffects &&
1057
- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
1058
- ) {
1041
+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
1059
1042
fiberFlags |= MountLayoutDev ;
1060
1043
}
1061
1044
workInProgress . flags |= fiberFlags ;
0 commit comments