openmrs-esm-core

O3 Framework / getFeatureFlag

Function: getFeatureFlag()

getFeatureFlag(flagName): boolean

Defined in: packages/framework/esm-feature-flags/src/feature-flags.ts:91

Use this function to access the current value of the feature flag.

If you are using React, use useFeatureFlag instead.

Parameters

flagName

string

The name of the feature flag to check.

Returns

boolean

true if the feature flag is enabled, false otherwise.