| 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 alwaysThrottleRetries: boolean = __VARIANT__; |
| 17 | export const disableLegacyContextForFunctionComponents: boolean = __VARIANT__; |
| 18 | export const disableSchedulerTimeoutInWorkLoop: boolean = __VARIANT__; |
| 19 | export const enableNoCloningMemoCache: boolean = __VARIANT__; |
| 20 | export const enableObjectFiber: boolean = __VARIANT__; |
| 21 | export const enableRetryLaneExpiration: boolean = __VARIANT__; |
| 22 | export const enableTransitionTracing: boolean = __VARIANT__; |
| 23 | export const retryLaneExpirationMs = 5000; |
| 24 | export const syncLaneExpirationMs = 250; |
| 25 | export const transitionLaneExpirationMs = 5000; |
| 26 | |
| 27 | export const enableSchedulingProfiler: boolean = __VARIANT__; |
| 28 | |
| 29 | export const enableInfiniteRenderLoopDetection: boolean = __VARIANT__; |
| 30 | export const enableInfiniteRenderLoopDetectionForceThrow: boolean = __VARIANT__; |
| 31 | export const enableConditionalUseWarning: boolean = __VARIANT__; |
| 32 | |
| 33 | export const enableFastAddPropertiesInDiffing: boolean = __VARIANT__; |
| 34 | export const enableSuspenseyImages: boolean = __VARIANT__; |
| 35 | export const enableViewTransition: boolean = __VARIANT__; |
| 36 | export const enableViewTransitionParentEnterExit: boolean = __VARIANT__; |
| 37 | export const enableScrollEndPolyfill: boolean = __VARIANT__; |
| 38 | export const enableFragmentRefs: boolean = __VARIANT__; |
| 39 | export const enableFragmentRefsScrollIntoView: boolean = __VARIANT__; |
| 40 | export const enableFragmentRefsTextNodes: boolean = __VARIANT__; |
| 41 | export const enableInternalInstanceMap: boolean = __VARIANT__; |
| 42 | export const enableParallelTransitions: boolean = __VARIANT__; |
| 43 | |
| 44 | // TODO: These flags are hard-coded to the default values used in open source. |
| 45 | // Update the tests so that they pass in either mode, then set these |
| 46 | // to __VARIANT__. |
| 47 | // You probably *don't* want to add more hardcoded ones. |
| 48 | // Instead, try to add them above with the __VARIANT__ value. |