Home / File/ ReactFeatureFlags.www-dynamic.js — react Source File

ReactFeatureFlags.www-dynamic.js — react Source File

Architecture documentation for ReactFeatureFlags.www-dynamic.js, a javascript file in the react codebase. 0 imports, 1 dependents.

Entity Profile

Dependency Diagram

graph LR
  e4a88c1d_4925_f755_6a31_1b567e075a50["ReactFeatureFlags.www-dynamic.js"]
  e9eb5a08_9cc2_2bbd_3984_e8f6a273e19b["ReactFeatureFlags.www.js"]
  e9eb5a08_9cc2_2bbd_3984_e8f6a273e19b --> e4a88c1d_4925_f755_6a31_1b567e075a50
  style e4a88c1d_4925_f755_6a31_1b567e075a50 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict
 */

// In www, these flags are controlled by GKs. Because most GKs have some
// population running in either mode, we should run our tests that way, too,
//
// 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 alwaysThrottleRetries: boolean = __VARIANT__;
export const disableLegacyContextForFunctionComponents: boolean = __VARIANT__;
export const disableSchedulerTimeoutInWorkLoop: boolean = __VARIANT__;
export const enableHiddenSubtreeInsertionEffectCleanup: boolean = __VARIANT__;
export const enableNoCloningMemoCache: boolean = __VARIANT__;
export const enableObjectFiber: boolean = __VARIANT__;
export const enableRetryLaneExpiration: boolean = __VARIANT__;
export const enableTransitionTracing: boolean = __VARIANT__;
export const retryLaneExpirationMs = 5000;
export const syncLaneExpirationMs = 250;
export const transitionLaneExpirationMs = 5000;

export const enableSchedulingProfiler: boolean = __VARIANT__;

export const enableInfiniteRenderLoopDetection: boolean = __VARIANT__;

export const enableFastAddPropertiesInDiffing: boolean = __VARIANT__;
export const enableViewTransition: boolean = __VARIANT__;
export const enableScrollEndPolyfill: boolean = __VARIANT__;
export const enableFragmentRefs: boolean = __VARIANT__;
export const enableFragmentRefsScrollIntoView: boolean = __VARIANT__;
export const enableFragmentRefsTextNodes: boolean = __VARIANT__;
export const enableInternalInstanceMap: boolean = __VARIANT__;
export const enableTrustedTypesIntegration: boolean = __VARIANT__;
export const enableParallelTransitions: boolean = __VARIANT__;

export const enableEffectEventMutationPhase: boolean = __VARIANT__;

// TODO: These flags are hard-coded to the default values used in open source.
// Update the tests so that they pass in either mode, then set these
// to __VARIANT__.
// You probably *don't* want to add more hardcoded ones.
// Instead, try to add them above with the __VARIANT__ value.

Domain

Frequently Asked Questions

What does ReactFeatureFlags.www-dynamic.js do?
ReactFeatureFlags.www-dynamic.js is a source file in the react codebase, written in javascript. It belongs to the CompilerCore domain.
What files import ReactFeatureFlags.www-dynamic.js?
ReactFeatureFlags.www-dynamic.js is imported by 1 file(s): ReactFeatureFlags.www.js.
Where is ReactFeatureFlags.www-dynamic.js in the architecture?
ReactFeatureFlags.www-dynamic.js is located at packages/shared/forks/ReactFeatureFlags.www-dynamic.js (domain: CompilerCore, directory: packages/shared/forks).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free