Skip to main content

call

Invoke one registered action or documented local command.

Quick reference​

SyntaxBehavior
call account.save with payload into resultInvoke an action and bind its result locally.
call refs.input.focusInvoke a local command.
with / intoOptional argument/result clauses.

Example​

<Button title="Save" on-press="call account.save with {name:'Sam'} into result; emit saved with result" />

Rules and validation​

Action names have two nonreserved identifier segments. Reachable names are checked before mount. Arguments/results use host decoding. into creates a local scoped to the current block; use state to share results across blocks. Host calls may suspend, so subsequent reads of state/data use current values.

Action lesson · Events · ref