Skip to content

markVisitorChange

markVisitorChange(): void

Defined in: slots.ts:103

Announce that the visitor caused the next change to what islands and fragments show — call it in the interaction handler (a click, a submit, a choice) before the state update that changes their campaign, context or declaration:

onClick={() => {
markVisitorChange();
setAudience("teams");
}}

Visible copy then changes once, with one cross-fade. Without it, a change keeps the visible copy until the slot is off screen or the next page view.

void