| 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 |
| 8 | */ |
| 9 | |
| 10 | import typeof * as FeatureFlagsType from 'shared/ReactFeatureFlags'; |
| 11 | import typeof * as ExportsType from './ReactFeatureFlags.test-renderer'; |
| 12 | |
| 13 | export const enableAsyncDebugInfo: boolean = true; |
| 14 | export const enableSchedulingProfiler: boolean = false; |
| 15 | export const enableProfilerTimer: boolean = __PROFILE__; |
| 16 | export const enableProfilerCommitHooks: boolean = __PROFILE__; |
| 17 | export const enableProfilerNestedUpdatePhase: boolean = __PROFILE__; |
| 18 | export const enableComponentPerformanceTrack: boolean = true; |
| 19 | export const enablePerformanceIssueReporting: boolean = false; |
| 20 | export const enableUpdaterTracking: boolean = false; |
| 21 | export const enableLegacyCache: boolean = __EXPERIMENTAL__; |
| 22 | export const enableAsyncIterableChildren: boolean = false; |
| 23 | export const enableFlightWeakThenables: boolean = false; |
| 24 | export const enableTaint: boolean = true; |
| 25 | export const disableCommentsAsDOMContainers: boolean = true; |
| 26 | export const disableInputAttributeSyncing: boolean = false; |
| 27 | export const enableScopeAPI: boolean = false; |
| 28 | export const enableCreateEventHandleAPI: boolean = false; |
| 29 | export const enableBrowserAPI: boolean = true; |
| 30 | export const enableSuspenseCallback: boolean = false; |
| 31 | export const enableTrustedTypesIntegration: boolean = true; |
| 32 | export const disableTextareaChildren: boolean = false; |
| 33 | export const enableSuspenseAvoidThisFallback: boolean = false; |
| 34 | export const enableCPUSuspense: boolean = false; |
| 35 | export const enableNoCloningMemoCache: boolean = false; |
| 36 | export const enableLegacyFBSupport: boolean = false; |
| 37 | export const enableMoveBefore: boolean = false; |
| 38 | |
| 39 | export const enableRetryLaneExpiration: boolean = false; |
| 40 | export const retryLaneExpirationMs = 5000; |
| 41 | export const syncLaneExpirationMs = 250; |
| 42 | export const transitionLaneExpirationMs = 5000; |
| 43 | |
| 44 | export const disableSchedulerTimeoutInWorkLoop: boolean = false; |
| 45 | export const enableLegacyHidden: boolean = false; |
| 46 | |
| 47 | export const enableTransitionTracing: boolean = false; |
| 48 | |
| 49 | export const enableFizzExternalRuntime: boolean = true; |
| 50 | |
| 51 | export const alwaysThrottleRetries: boolean = true; |
| 52 | |
| 53 | export const passChildrenWhenCloningPersistedNodes: boolean = false; |
| 54 | export const disableClientCache: boolean = true; |
| 55 | |
| 56 | export const enableInfiniteRenderLoopDetection: boolean = false; |
| 57 | export const enableInfiniteRenderLoopDetectionForceThrow: boolean = false; |
| 58 | export const enableConditionalUseWarning: boolean = __EXPERIMENTAL__; |
| 59 | |
| 60 | export const enableEffectEventMutationPhase: boolean = true; |
| 61 | |
| 62 | export const enableYieldingBeforePassive: boolean = true; |
| 63 | |
| 64 | export const enableThrottledScheduling: boolean = false; |
| 65 | export const enableViewTransition: boolean = true; |
| 66 | export const enableViewTransitionParentEnterExit = __EXPERIMENTAL__; |
| 67 | export const enableViewTransitionForPersistenceMode: boolean = false; |
| 68 | export const enableGestureTransition: boolean = false; |
| 69 | export const enableScrollEndPolyfill: boolean = true; |
| 70 | export const enableSuspenseyImages: boolean = false; |
| 71 | export const enableFizzBlockingRender: boolean = true; |
| 72 | export const enableSrcObject: boolean = false; |
| 73 | export const enableHydrationChangeEvent: boolean = false; |
| 74 | export const enableDefaultTransitionIndicator: boolean = false; |
| 75 | export const ownerStackLimit = 1e4; |
| 76 | |
| 77 | export const enableFragmentRefs: boolean = true; |
| 78 | export const enableFragmentRefsScrollIntoView: boolean = true; |
| 79 | export const enableFragmentRefsInstanceHandles: boolean = true; |
| 80 | export const enableFragmentRefsTextNodes: boolean = true; |
| 81 | |
| 82 | export const enableInternalInstanceMap: boolean = false; |
| 83 | |
| 84 | // TODO: This must be in sync with the main ReactFeatureFlags file because |
| 85 | // the Test Renderer's value must be the same as the one used by the |
| 86 | // react package. |
| 87 | // |
| 88 | // We really need to get rid of this whole module. Any test renderer specific |
| 89 | // flags should be handled by the Fiber config. |
| 90 | // const __NEXT_MAJOR__ = __EXPERIMENTAL__; |
| 91 | export const disableLegacyMode: boolean = true; |
| 92 | export const disableLegacyContext: boolean = true; |
| 93 | export const disableLegacyContextForFunctionComponents: boolean = true; |
| 94 | export const enableReactTestRendererWarning: boolean = true; |
| 95 | |
| 96 | export const enableObjectFiber: boolean = false; |
| 97 | |
| 98 | export const enableOptimisticKey: boolean = false; |
| 99 | export const enableParallelTransitions: boolean = true; |
| 100 | |
| 101 | export const eprh_enableUseKeyedStateCompilerLint: boolean = false; |
| 102 | export const eprh_enableVerboseNoSetStateInEffectCompilerLint: boolean = false; |
| 103 | export const eprh_enableExhaustiveEffectDependenciesCompilerLint: |
| 104 | | 'off' |
| 105 | | 'all' |
| 106 | | 'extra-only' |
| 107 | | 'missing-only' = 'off'; |
| 108 | |
| 109 | // Flow magic to verify the exports of this file match the original version. |
| 110 | null as any as ExportsType as FeatureFlagsType as ExportsType; |