Skip to content

Commit 3169430

Browse files
author
Brian Vaughn
authored
Make StrictMode double rendering flag static for FB/www (#21517)
1 parent e0f89aa commit 3169430

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/shared/forks/ReactFeatureFlags.www-dynamic.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export const deferRenderPhaseUpdateToNextBatch = !__VARIANT__;
4141

4242
// These are already tested in both modes using the build type dimension,
4343
// so we don't need to use __VARIANT__ to get extra coverage.
44-
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
4544
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
4645

4746
// TODO: These flags are hard-coded to the default values used in open source.

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic';
1515
const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
1616

1717
export const {
18-
debugRenderPhaseSideEffectsForStrictMode,
1918
disableInputAttributeSyncing,
2019
enableTrustedTypesIntegration,
2120
disableSchedulerTimeoutBasedOnReactExpirationTime,
@@ -40,6 +39,7 @@ export const {
4039
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
4140
// It's not used anywhere in production yet.
4241

42+
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
4343
export const enableProfilerTimer = __PROFILE__;
4444
export const enableProfilerCommitHooks = __PROFILE__;
4545
export const enableProfilerNestedUpdatePhase = __PROFILE__;

0 commit comments

Comments
 (0)