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
- FeatureFlareProvider for the React context that powers flag diagnostics.