mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Make StrictMode double rendering flag static for FB/www (#21517)
This commit is contained in:
@@ -41,7 +41,6 @@ export const deferRenderPhaseUpdateToNextBatch = !__VARIANT__;
|
||||
|
||||
// These are already tested in both modes using the build type dimension,
|
||||
// so we don't need to use __VARIANT__ to get extra coverage.
|
||||
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
|
||||
export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
|
||||
|
||||
// TODO: These flags are hard-coded to the default values used in open source.
|
||||
|
||||
@@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic';
|
||||
const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
|
||||
|
||||
export const {
|
||||
debugRenderPhaseSideEffectsForStrictMode,
|
||||
disableInputAttributeSyncing,
|
||||
enableTrustedTypesIntegration,
|
||||
disableSchedulerTimeoutBasedOnReactExpirationTime,
|
||||
@@ -40,6 +39,7 @@ export const {
|
||||
// On WWW, __EXPERIMENTAL__ is used for a new modern build.
|
||||
// It's not used anywhere in production yet.
|
||||
|
||||
export const debugRenderPhaseSideEffectsForStrictMode = __DEV__;
|
||||
export const enableProfilerTimer = __PROFILE__;
|
||||
export const enableProfilerCommitHooks = __PROFILE__;
|
||||
export const enableProfilerNestedUpdatePhase = __PROFILE__;
|
||||
|
||||
Reference in New Issue
Block a user