FF
FeatureFlare docs
Guides and API reference
API reference

FlagDiagnostics

Diagnostic metadata returned by the React diagnostics hook.

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

FlagDiagnostics

Diagnostic metadata returned by the React diagnostic hook for a single flag.

More on this: this type summarizes evaluation metadata from the SDK into a React-friendly shape.

export type FlagDiagnostics = {
  source: FeatureFlareEvaluationMetadata['source'] | 'unknown';
  reason: FeatureFlareEvaluationMetadata['reason'] | 'unknown';
  isStale: boolean;
  updatedAt?: number;
  staleAt?: number;
  expiresAt?: number;
  latencyMs?: number;
};

Fields

source / reason

Where the current value came from and why that value path was selected.

isStale

Whether the current flag value is being served from stale data.

updatedAt / staleAt / expiresAt

Timestamps that describe cache freshness windows for the current value.

latencyMs

Observed latency for the evaluation path when available.

Related docs