Home > @plasmicapp/loader-splits > getActiveVariation

getActiveVariation() function

Signature:

export declare function getActiveVariation(opts: {
    splits: Split[];
    traits: Record<string, string | number | boolean>;
    getKnownValue?: (key: string) => string | undefined;
    updateKnownValue?: (key: string, value: string) => void;
    getRandomValue?: (key: string) => number;
    enableUnseededExperiments?: boolean;
}): Record<string, string>;

Parameters

Parameter Type Description
opts { splits: Split[]; traits: Record<string, string | number | boolean>; getKnownValue?: (key: string) => string | undefined; updateKnownValue?: (key: string, value: string) => void; getRandomValue?: (key: string) => number; enableUnseededExperiments?: boolean; }

Returns:

Record<string, string>