Experience Hooks
useIgExperiences()
Returns a list of experiences the user is assigned to (filtered to active experiences). The returned items are PluginExperienceType objects from @intelligems/ig-types.
import type { PluginExperienceType } from "@intelligems/ig-types";
const useIgExperiences: () => {
isReady: boolean;
experiences: PluginExperienceType[]
}useIgConfigExperiences()
Returns all experiences from the active Intelligems configuration file.
const useIgConfigExperiences: () => {
isReady: boolean;
experiences: PluginExperienceType[]
}useIgPreviewedExperience()
Returns the experience currently being previewed (or null if preview mode is inactive or set to preview all traffic).
Last updated