mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Enable new passive effect behavior for FB builds (#18444)
* Enable new passive effect behavior for FB builds Previously this behavior was controlled by GKs. This PR updates the flags to be enabled statically. It also enables the flags in the test builds.
This commit is contained in:
@@ -39,8 +39,8 @@ export const disableTextareaChildren = false;
|
||||
export const disableMapsAsChildren = false;
|
||||
export const disableModulePatternComponents = false;
|
||||
export const warnUnstableRenderSubtreeIntoContainer = false;
|
||||
export const deferPassiveEffectCleanupDuringUnmount = false;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = false;
|
||||
export const deferPassiveEffectCleanupDuringUnmount = true;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = true;
|
||||
export const enableModernEventSystem = false;
|
||||
export const warnAboutSpreadingKeyToJSX = false;
|
||||
export const enableLegacyFBSupport = false;
|
||||
|
||||
@@ -39,8 +39,8 @@ export const disableTextareaChildren = __EXPERIMENTAL__;
|
||||
export const disableMapsAsChildren = __EXPERIMENTAL__;
|
||||
export const disableModulePatternComponents = false;
|
||||
export const warnUnstableRenderSubtreeIntoContainer = false;
|
||||
export const deferPassiveEffectCleanupDuringUnmount = false;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = false;
|
||||
export const deferPassiveEffectCleanupDuringUnmount = true;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = true;
|
||||
export const enableModernEventSystem = false;
|
||||
export const warnAboutSpreadingKeyToJSX = false;
|
||||
export const enableLegacyFBSupport = !__EXPERIMENTAL__;
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
// Use __VARIANT__ to simulate a GK. The tests will be run twice: once
|
||||
// with the __VARIANT__ set to `true`, and once set to `false`.
|
||||
|
||||
export const deferPassiveEffectCleanupDuringUnmount = __VARIANT__;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = __VARIANT__;
|
||||
export const warnAboutSpreadingKeyToJSX = __VARIANT__;
|
||||
|
||||
// These are already tested in both modes using the build type dimension,
|
||||
|
||||
@@ -16,10 +16,8 @@ const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
|
||||
|
||||
export const {
|
||||
debugRenderPhaseSideEffectsForStrictMode,
|
||||
deferPassiveEffectCleanupDuringUnmount,
|
||||
disableInputAttributeSyncing,
|
||||
enableTrustedTypesIntegration,
|
||||
runAllPassiveEffectDestroysBeforeCreates,
|
||||
warnAboutShorthandPropertyCollision,
|
||||
disableSchedulerTimeoutBasedOnReactExpirationTime,
|
||||
warnAboutSpreadingKeyToJSX,
|
||||
@@ -83,6 +81,9 @@ export const throwEarlyForMysteriousError = false;
|
||||
// to the correct value.
|
||||
export const enableNewReconciler = __VARIANT__;
|
||||
|
||||
export const deferPassiveEffectCleanupDuringUnmount = true;
|
||||
export const runAllPassiveEffectDestroysBeforeCreates = true;
|
||||
|
||||
// Flow magic to verify the exports of this file match the original version.
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
type Check<_X, Y: _X, X: Y = _X> = null;
|
||||
|
||||
Reference in New Issue
Block a user