Options
All
  • Public
  • Public/Protected
  • All
Menu

The working context of the feature flag system

Type parameters

  • KEYS: string

    the union of all possible feature flag keys. E.g. 'useV2ui' | 'useNewPaymentGateway' | ...

  • PROPS: string = any

    the union of all expected props on the user identifier object. E.g. 'organization' | 'email' | ...

Hierarchy

  • IFeatureFlagContext

Index

Properties

flags: undefined | Partial<Record<KEYS, boolean>>

the fetched feature flag values

identify: TIdentifierFunction<PROPS>

The function to identify the current user for the purpose of fetching the correct feature flags. This is helpful if you are segmenting flag rollouts for specific groups of users.

loading: boolean

whether the feature flags are loading

Generated using TypeDoc