1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow strict
    
  8.  */
    
  9. 
    
  10. // In www, these flags are controlled by GKs. Because most GKs have some
    
  11. // population running in either mode, we should run our tests that way, too,
    
  12. //
    
  13. // Use __VARIANT__ to simulate a GK. The tests will be run twice: once
    
  14. // with the __VARIANT__ set to `true`, and once set to `false`.
    
  15. 
    
  16. export const disableInputAttributeSyncing = __VARIANT__;
    
  17. export const disableIEWorkarounds = __VARIANT__;
    
  18. export const enableLegacyFBSupport = __VARIANT__;
    
  19. export const enableUseRefAccessWarning = __VARIANT__;
    
  20. export const enableProfilerNestedUpdateScheduledHook = __VARIANT__;
    
  21. export const disableSchedulerTimeoutInWorkLoop = __VARIANT__;
    
  22. export const enableLazyContextPropagation = __VARIANT__;
    
  23. export const forceConcurrentByDefaultForTesting = __VARIANT__;
    
  24. export const enableUnifiedSyncLane = __VARIANT__;
    
  25. export const enableTransitionTracing = __VARIANT__;
    
  26. export const enableCustomElementPropertySupport = __VARIANT__;
    
  27. export const enableDeferRootSchedulingToMicrotask = __VARIANT__;
    
  28. export const enableAsyncActions = __VARIANT__;
    
  29. export const alwaysThrottleRetries = __VARIANT__;
    
  30. export const enableDO_NOT_USE_disableStrictPassiveEffect = __VARIANT__;
    
  31. export const enableUseDeferredValueInitialArg = __VARIANT__;
    
  32. 
    
  33. // Enable this flag to help with concurrent mode debugging.
    
  34. // It logs information to the console about React scheduling, rendering, and commit phases.
    
  35. //
    
  36. // NOTE: This feature will only work in DEV mode; all callsites are wrapped with __DEV__.
    
  37. export const enableDebugTracing = __EXPERIMENTAL__;
    
  38. 
    
  39. export const enableSchedulingProfiler = __VARIANT__;
    
  40. 
    
  41. // These are already tested in both modes using the build type dimension,
    
  42. // so we don't need to use __VARIANT__ to get extra coverage.
    
  43. export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
    
  44. 
    
  45. // TODO: These flags are hard-coded to the default values used in open source.
    
  46. // Update the tests so that they pass in either mode, then set these
    
  47. // to __VARIANT__.
    
  48. export const enableTrustedTypesIntegration = false;
    
  49. // You probably *don't* want to add more hardcoded ones.
    
  50. // Instead, try to add them above with the __VARIANT__ value.