Reactions & Triggers
When this happens, do that — the page's only rule primitive, plus the per-clip triggers in the timeline.
What can start a reaction.
| Kind | Fires when |
|---|---|
| onTake | The page (or graphic) is taken to air. |
| onTakeOut | It is taken off air. |
| onEvent | A named event is emitted — by a button, another reaction, or the HTTP event endpoint. |
| onChange | A store path changes at all. |
| onCompare | A store path satisfies a comparison: eq, ne, lt, lte, gt, gte, in, not-in, contains. |
| onClipEnd | A named clip finishes. |
Clip triggers in the timeline offer a different list, because they are attached to a component: onData, onClick, onDoubleClick, onMouseEnter, onMouseLeave, onMount, and the three clip-lifecycle events onClipStart, onClipEnd, onClipLoop.