@uservane/browser: decideShow
Function: decideShow()
Section titled “Function: 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).
Parameters
Section titled “Parameters”survey
Section titled “survey”Pick<ClientState, "userId" | "traits" | "rules" | "rulesLoaded" | "rulesFailed" | "sessionShown" | "localSuppression">