Skip to content

module

decls

A template's declarations at run time: state as signals, let as memos, on handlers as pure transitions, load as data that follows its request, and timers.

A handler evaluates every right-hand side against the state as it was, then sets the new values in one batch, then runs its commands (emit, navigate, requests, reload) with arguments computed before the change. A request's answer arrives later, as a run of the handler it names. A timer runs its steps the same way, and so does @event: … (or it calls a handler) for each window event of that kind while the component lives.

Functions

declare

pub fn declare(template: &Template, scope: Scope, props: &Props) -> Result<Scope, RenderError>

scope with template's declarations added (they hide names it already has).