@@ -26,7 +26,6 @@ import {
2626 enableSchedulingProfiler ,
2727 warnAboutDeprecatedLifecycles ,
2828 enableLazyContextPropagation ,
29- enableStrictEffects ,
3029} from 'shared/ReactFeatureFlags' ;
3130import ReactStrictModeWarnings from './ReactStrictModeWarnings.new' ;
3231import { isMounted } from './ReactFiberTreeReflection' ;
@@ -908,11 +907,7 @@ function mountClassInstance(
908907
909908 if ( typeof instance . componentDidMount === 'function' ) {
910909 let fiberFlags : Flags = Update | LayoutStatic ;
911- if (
912- __DEV__ &&
913- enableStrictEffects &&
914- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
915- ) {
910+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
916911 fiberFlags |= MountLayoutDev ;
917912 }
918913 workInProgress . flags |= fiberFlags ;
@@ -986,11 +981,7 @@ function resumeMountClassInstance(
986981 // effect even though we're bailing out, so that cWU/cDU are called.
987982 if ( typeof instance . componentDidMount === 'function' ) {
988983 let fiberFlags : Flags = Update | LayoutStatic ;
989- if (
990- __DEV__ &&
991- enableStrictEffects &&
992- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
993- ) {
984+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
994985 fiberFlags |= MountLayoutDev ;
995986 }
996987 workInProgress . flags |= fiberFlags ;
@@ -1037,11 +1028,7 @@ function resumeMountClassInstance(
10371028 }
10381029 if ( typeof instance . componentDidMount === 'function' ) {
10391030 let fiberFlags : Flags = Update | LayoutStatic ;
1040- if (
1041- __DEV__ &&
1042- enableStrictEffects &&
1043- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
1044- ) {
1031+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
10451032 fiberFlags |= MountLayoutDev ;
10461033 }
10471034 workInProgress . flags |= fiberFlags ;
@@ -1051,11 +1038,7 @@ function resumeMountClassInstance(
10511038 // effect even though we're bailing out, so that cWU/cDU are called.
10521039 if ( typeof instance . componentDidMount === 'function' ) {
10531040 let fiberFlags : Flags = Update | LayoutStatic ;
1054- if (
1055- __DEV__ &&
1056- enableStrictEffects &&
1057- ( workInProgress . mode & StrictEffectsMode ) !== NoMode
1058- ) {
1041+ if ( __DEV__ && ( workInProgress . mode & StrictEffectsMode ) !== NoMode ) {
10591042 fiberFlags |= MountLayoutDev ;
10601043 }
10611044 workInProgress . flags |= fiberFlags ;
0 commit comments