From 0d8c0cd0968150e187ed7132315521d78a5abf61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Wed, 25 Sep 2019 08:00:29 -0700 Subject: [PATCH] These flags are hard coded in our internal config (#16883) 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. --- .../shared/forks/ReactFeatureFlags.www.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index a3d2295974de1..aea7c61cd8231 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,16 @@ 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 enableUserBlockingEvents = true; + export const enableStableConcurrentModeAPIs = false; export const enableSuspenseServerRenderer = true;