Skip to content

@uservane/browser: decideShow

decideShow(survey, state): Decision

Defined in: show-decision.ts:73

Evaluate whether a survey may be shown right now. Requires identity for sampling/suppression stability; without userId we still allow show if sample is 100% and not suppressed (anonymous).

SurveyDefinition

Pick<ClientState, "userId" | "traits" | "rules" | "rulesLoaded" | "rulesFailed" | "sessionShown" | "localSuppression">

Decision