From d4d1dc085d1332fdd5025c292adcb5b39811e5b5 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 7 Sep 2021 23:28:38 +0100 Subject: [PATCH] Reorder VARIANT feature flags (#22266) * Move variant tests up * Add a comment --- .../forks/ReactFeatureFlags.www-dynamic.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js index e39892a106eca..366f1fd0a703b 100644 --- a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js +++ b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js @@ -18,6 +18,13 @@ export const disableInputAttributeSyncing = __VARIANT__; export const enableFilterEmptyStringAttributesDOM = __VARIANT__; export const enableLegacyFBSupport = __VARIANT__; export const skipUnmountedBoundaries = __VARIANT__; +export const enableUseRefAccessWarning = __VARIANT__; +export const deletedTreeCleanUpLevel = __VARIANT__ ? 3 : 1; +export const enableProfilerNestedUpdateScheduledHook = __VARIANT__; +export const disableSchedulerTimeoutInWorkLoop = __VARIANT__; +export const enableLazyContextPropagation = __VARIANT__; +export const enableSyncDefaultUpdates = __VARIANT__; +export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__; // Enable this flag to help with concurrent mode debugging. // It logs information to the console about React scheduling, rendering, and commit phases. @@ -47,17 +54,9 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__; export const enableTrustedTypesIntegration = false; export const disableSchedulerTimeoutBasedOnReactExpirationTime = false; export const disableNativeComponentFrames = false; - export const createRootStrictEffectsByDefault = false; export const enableStrictEffects = false; -export const enableUseRefAccessWarning = __VARIANT__; -export const deletedTreeCleanUpLevel = __VARIANT__ ? 3 : 1; - -export const enableProfilerNestedUpdateScheduledHook = __VARIANT__; -export const disableSchedulerTimeoutInWorkLoop = __VARIANT__; -export const enableLazyContextPropagation = __VARIANT__; -export const enableSyncDefaultUpdates = __VARIANT__; export const allowConcurrentByDefault = true; export const enablePersistentOffscreenHostContainer = false; - -export const consoleManagedByDevToolsDuringStrictMode = __VARIANT__; +// You probably *don't* want to add more hardcoded ones. +// Instead, try to add them above with the __VARIANT__ value.