File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
25
25
26
26
// Helps identify code that is not safe for planned Offscreen API and Suspense semantics;
27
27
// this feature flag only impacts StrictEffectsMode.
28
- export const enableStrictEffects = false ;
28
+ export const enableStrictEffects = __DEV__ ;
29
29
30
30
// If TRUE, trees rendered with createRoot will be StrictEffectsMode.
31
31
// If FALSE, these trees will be StrictLegacyMode.
@@ -128,7 +128,7 @@ export const deletedTreeCleanUpLevel = 1;
128
128
// Destroy layout effects for components that are hidden because something suspended in an update
129
129
// and recreate them when they are shown again (after the suspended boundary has resolved).
130
130
// Note that this should be an uncommon use case and can be avoided by using the transition API.
131
- export const enableSuspenseLayoutEffectSemantics = false ;
131
+ export const enableSuspenseLayoutEffectSemantics = true ;
132
132
133
133
// --------------------------
134
134
// Future APIs to be deprecated
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export const {
25
25
deferRenderPhaseUpdateToNextBatch,
26
26
enableDebugTracing,
27
27
skipUnmountedBoundaries,
28
- enableStrictEffects,
29
28
createRootStrictEffectsByDefault,
30
29
enableSuspenseLayoutEffectSemantics,
31
30
enableUseRefAccessWarning,
@@ -39,6 +38,8 @@ export const {
39
38
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
40
39
// It's not used anywhere in production yet.
41
40
41
+ export const enableStrictEffects =
42
+ __DEV__ && dynamicFeatureFlags . enableStrictEffects ;
42
43
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__ ;
43
44
export const enableProfilerTimer = __PROFILE__ ;
44
45
export const enableProfilerCommitHooks = __PROFILE__ ;
You can’t perform that action at this time.
0 commit comments