Skip to content

Commit 0d8c0cd

Browse files
authored
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.
1 parent d6d83d7 commit 0d8c0cd

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,8 @@ import typeof * as FeatureFlagsShimType from './ReactFeatureFlags.www';
1414
export const {
1515
debugRenderPhaseSideEffects,
1616
debugRenderPhaseSideEffectsForStrictMode,
17-
replayFailedUnitOfWorkWithInvokeGuardedCallback,
18-
warnAboutDeprecatedLifecycles,
1917
disableInputAttributeSyncing,
20-
warnAboutShorthandPropertyCollision,
21-
warnAboutDeprecatedSetNativeProps,
22-
enableUserBlockingEvents,
23-
disableLegacyContext,
24-
disableSchedulerTimeoutBasedOnReactExpirationTime,
2518
enableTrustedTypesIntegration,
26-
warnAboutStringRefs,
27-
warnAboutDefaultPropsOnFunctionComponents,
2819
} = require('ReactFeatureFlags');
2920

3021
// In www, we have experimental support for gathering data
@@ -39,6 +30,16 @@ export const enableProfilerTimer = __PROFILE__;
3930
export const enableSchedulerTracing = __PROFILE__;
4031
export const enableSchedulerDebugging = true;
4132

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+
4243
export const enableStableConcurrentModeAPIs = false;
4344

4445
export const enableSuspenseServerRenderer = true;

0 commit comments

Comments
 (0)