@uservane/browser: UserVane
Variable: UserVane
Section titled “Variable: UserVane”
constUserVane:object
Defined in: index.ts:85
Type Declaration
Section titled “Type Declaration”identify()
Section titled “identify()”
readonlyidentify(options):void
Identify the current respondent. Repeatable (traits merge/update). Safe before or after init; triggers re-evaluation of buffered surveys.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
init()
Section titled “init()”
readonlyinit(options):void
Initialize the SDK. Queued and idempotent. Defers network work to idle. Safe to call during SSR (no-ops DOM work).
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”void
survey()
Section titled “survey()”
readonlysurvey(slug):void
Imperative survey trigger by slug. If rules are not loaded yet, the trigger is buffered and evaluated once loaded. Never drops a survey because identify/init ordering lagged.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void