FF
FeatureFlare docs
Guides and API reference
API reference

FlagsState

Shared state shape returned by multi-flag React hooks.

Current section
Component and config reference
Use these pages when you need props, defaults, and provider behavior details.

FlagsState

Shared state shape returned by multi-flag React hooks.

More on this: this type is produced by the React flag hooks and uses the same provider context established by FeatureFlareProvider.

export type FlagsState = {
  flags: Array<{ key: string; value: boolean }>;
  loading: boolean;
  error: string | null;
};

Fields

flags

Current list of evaluated boolean flags returned for the active user.

loading

True while the first fetch is pending or no cached data exists yet.

error

Normalized error message for the most recent failed fetch, or null.