@samitouri / QOS-React-2 / commits / 316943091e

Make StrictMode double rendering flag static for FB/www (#21517)

Brian Vaughn committed May 18, 2021 at 07:07 UTC 316943091ed36b2807b70b765283c7647dd9ffda
2 files changed +1 -2
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
-1
@@ -41,7 +41,6 @@ export const deferRenderPhaseUpdateToNextBatch = !__VARIANT__;
41
42 // These are already tested in both modes using the build type dimension,
43 // so we don't need to use __VARIANT__ to get extra coverage.
44 -export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
44 export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
45
46 // TODO: These flags are hard-coded to the default values used in open source.
packages/shared/forks/ReactFeatureFlags.www.js
+1 -1
@@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic';
15 const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
16
17 export const {
18 - debugRenderPhaseSideEffectsForStrictMode,
18 disableInputAttributeSyncing,
19 enableTrustedTypesIntegration,
20 disableSchedulerTimeoutBasedOnReactExpirationTime,
@@ -40,6 +39,7 @@ export const {
39 // On WWW, __EXPERIMENTAL__ is used for a new modern build.
40 // It's not used anywhere in production yet.
41
42 +export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
43 export const enableProfilerTimer = __PROFILE__;
44 export const enableProfilerCommitHooks = __PROFILE__;
45 export const enableProfilerNestedUpdatePhase = __PROFILE__;