Home / Function/ getNextMajorFlagValue() — react Function Reference

getNextMajorFlagValue() — react Function Reference

Architecture documentation for the getNextMajorFlagValue() function in flags.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  f8b221cb_e905_4397_caff_50625bf4dfc2["getNextMajorFlagValue()"]
  9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"]
  f8b221cb_e905_4397_caff_50625bf4dfc2 -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065
  style f8b221cb_e905_4397_caff_50625bf4dfc2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/flags/flags.js lines 183–198

function getNextMajorFlagValue(flag) {
  const value = ReactFeatureFlagsMajor[flag];
  if (value === true || value === 'next') {
    return '✅';
  } else if (value === false || value === null || value === 'experimental') {
    return '❌';
  } else if (value === 'profile') {
    return '📊';
  } else if (value === 'dev') {
    return '💻';
  } else if (typeof value === 'number') {
    return value;
  } else {
    throw new Error(`Unexpected OSS Stable value ${value} for flag ${flag}`);
  }
}

Domain

Subdomains

Frequently Asked Questions

What does getNextMajorFlagValue() do?
getNextMajorFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getNextMajorFlagValue() defined?
getNextMajorFlagValue() is defined in scripts/flags/flags.js at line 183.

Analyze Your Own Codebase

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

Try Supermodel Free