getOSSCanaryFlagValue() — react Function Reference
Architecture documentation for the getOSSCanaryFlagValue() function in flags.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD db4bdc42_e04f_ffe8_8197_0e5cfdc4192c["getOSSCanaryFlagValue()"] 9707085b_16d7_ffa5_8026_16a476a1a065["flags.js"] db4bdc42_e04f_ffe8_8197_0e5cfdc4192c -->|defined in| 9707085b_16d7_ffa5_8026_16a476a1a065 style db4bdc42_e04f_ffe8_8197_0e5cfdc4192c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/flags/flags.js lines 200–220
function getOSSCanaryFlagValue(flag) {
const value = ReactFeatureFlags[flag];
if (value === true) {
return '✅';
} else if (
value === false ||
value === null ||
value === 'experimental' ||
value === 'next'
) {
return '❌';
} else if (value === 'profile') {
return '📊';
} else if (value === 'dev') {
return '💻';
} else if (typeof value === 'number') {
return value;
} else {
throw new Error(`Unexpected OSS Canary value ${value} for flag ${flag}`);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getOSSCanaryFlagValue() do?
getOSSCanaryFlagValue() is a function in the react codebase, defined in scripts/flags/flags.js.
Where is getOSSCanaryFlagValue() defined?
getOSSCanaryFlagValue() is defined in scripts/flags/flags.js at line 200.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free