From 4a6f793070fc8e659eab5d99d2aad94b02cb4543 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Tue, 24 Sep 2019 21:29:02 -0700 Subject: [PATCH] These flags are hard coded in our internal config By hard coding them here they can get properly DCE and don't have to be sent to users. The internal config should only have dynamic flags. --- packages/shared/forks/ReactFeatureFlags.www.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index a3d2295974de1..0dab495e258b3 100644 --- a/packages/shared/forks/ReactFeatureFlags.www.js +++ b/packages/shared/forks/ReactFeatureFlags.www.js @@ -14,17 +14,8 @@ import typeof * as FeatureFlagsShimType from './ReactFeatureFlags.www'; export const { debugRenderPhaseSideEffects, debugRenderPhaseSideEffectsForStrictMode, - replayFailedUnitOfWorkWithInvokeGuardedCallback, - warnAboutDeprecatedLifecycles, disableInputAttributeSyncing, - warnAboutShorthandPropertyCollision, - warnAboutDeprecatedSetNativeProps, - enableUserBlockingEvents, - disableLegacyContext, - disableSchedulerTimeoutBasedOnReactExpirationTime, enableTrustedTypesIntegration, - warnAboutStringRefs, - warnAboutDefaultPropsOnFunctionComponents, } = require('ReactFeatureFlags'); // In www, we have experimental support for gathering data @@ -39,6 +30,15 @@ export const enableProfilerTimer = __PROFILE__; export const enableSchedulerTracing = __PROFILE__; export const enableSchedulerDebugging = true; +export const replayFailedUnitOfWorkWithInvokeGuardedCallback = false; +export const warnAboutDeprecatedLifecycles = true; +export const warnAboutShorthandPropertyCollision = false; +export const warnAboutDeprecatedSetNativeProps = false; +export const disableLegacyContext = false; +export const warnAboutStringRefs = false; +export const warnAboutDefaultPropsOnFunctionComponents = false; +export const disableSchedulerTimeoutBasedOnReactExpirationTime = false; + export const enableStableConcurrentModeAPIs = false; export const enableSuspenseServerRenderer = true;