From bdcbe2935beebba6d8a23de5b3dc2f79b1f6ca44 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 26 Apr 2021 15:31:27 -0400 Subject: [PATCH] Enable strict effects mode for React Native Facebook builds --- packages/shared/forks/ReactFeatureFlags.native-fb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shared/forks/ReactFeatureFlags.native-fb.js b/packages/shared/forks/ReactFeatureFlags.native-fb.js index 4cff778708655..e712288cf11c3 100644 --- a/packages/shared/forks/ReactFeatureFlags.native-fb.js +++ b/packages/shared/forks/ReactFeatureFlags.native-fb.js @@ -53,7 +53,7 @@ export const enableSuspenseLayoutEffectSemantics = false; export const enableNewReconciler = false; export const deferRenderPhaseUpdateToNextBatch = true; -export const enableStrictEffects = false; +export const enableStrictEffects = __DEV__; export const createRootStrictEffectsByDefault = false; export const enableUseRefAccessWarning = false;