FF
FeatureFlare docs
Guides and API reference
API reference

FeatureFlareBootstrapPayload

Bootstrap snapshot shape for preloading flag state.

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

FeatureFlareBootstrapPayload

Initial flag snapshot shape used to warm client state before the first network fetch.

More on this: see FeatureFlareReactConfig for the config field that accepts this payload.

export type FeatureFlareBootstrapPayload = {
  revision?: number;
  killSwitches?: string[];
  flags?:
    | Record<string, boolean>
    | Array<{ key: string; value: boolean; revision?: number; updatedAt?: number }>;
};

Fields

revision?: number

Optional snapshot revision used to order updates.

killSwitches?: string[]

Optional list of kill-switched flag keys that should override normal evaluation.

flags?: Record<string, boolean> | Array<...>

Accepts either a simple key-to-boolean map or an array of entries when you also want to include per-flag revision and updatedAt metadata.

Related docs