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.
Sebastian Markbåge committed
Sep 25, 2019 at 08:00 UTC
0d8c0cd0968150e187ed7132315521d78a5abf61
1 file changed
+10
-9
packages/shared/forks/ReactFeatureFlags.www.js
+10
-9
@@ -14,17 +14,8 @@ import typeof * as FeatureFlagsShimType from './ReactFeatureFlags.www';
14
export const {
15
debugRenderPhaseSideEffects,
16
debugRenderPhaseSideEffectsForStrictMode,
17
- replayFailedUnitOfWorkWithInvokeGuardedCallback,
18
- warnAboutDeprecatedLifecycles,
17
disableInputAttributeSyncing,
20
- warnAboutShorthandPropertyCollision,
21
- warnAboutDeprecatedSetNativeProps,
22
- enableUserBlockingEvents,
23
- disableLegacyContext,
24
- disableSchedulerTimeoutBasedOnReactExpirationTime,
18
enableTrustedTypesIntegration,
26
- warnAboutStringRefs,
27
- warnAboutDefaultPropsOnFunctionComponents,
19
} = require('ReactFeatureFlags');
20
21
// In www, we have experimental support for gathering data
@@ -39,6 +30,16 @@ export const enableProfilerTimer = __PROFILE__;
30
export const enableSchedulerTracing = __PROFILE__;
31
export const enableSchedulerDebugging = true;
32
33
+export const replayFailedUnitOfWorkWithInvokeGuardedCallback = false;
34
+export const warnAboutDeprecatedLifecycles = true;
35
+export const warnAboutShorthandPropertyCollision = false;
36
+export const warnAboutDeprecatedSetNativeProps = false;
37
+export const disableLegacyContext = false;
38
+export const warnAboutStringRefs = false;
39
+export const warnAboutDefaultPropsOnFunctionComponents = false;
40
+export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
41
+export const enableUserBlockingEvents = true;
42
+
43
export const enableStableConcurrentModeAPIs = false;
44
45
export const enableSuspenseServerRenderer = true;