Expand description
Resuma procedural macros.
Re-exported by the resuma crate. Typical surface:
| Macro | Role |
|---|---|
view! | JSX-like templates → View |
#[component] | Resumable component + props builder (lazy handler boundary) |
#[server] | Async RPC at POST /_resuma/action/:name |
computed! | Client-replayable derived signal (rs2js) |
effect! | Client-replayable side effect (rs2js) |
debounce! | Debounced client reaction |
#[island] | Optional heavy lazy boundary (load = "visible") |
js! | Raw JavaScript handler escape hatch |
Macros§
- computed
computed!([deps…], move || …)— derived signal with client replay (rs2js-translated).- debounce
debounce!([deps…], ms, move || …)— debounced client reaction (rs2js-translated).- effect
effect!([signals…], move || { … })— client-replayable side effect (rs2js).- js
js!— raw JavaScript escape hatch for event handlers.- view
view!— JSX-like template macro.
Attribute Macros§
- component
#[component]— resumable component with generated props builder.- island
#[island]— optional interactive boundary for heavy or visibility-gated JS.- layout
#[layout]— Resuma Flow layout wrapper.- load
#[load]— Resuma Flow server data loader.- middleware
#[middleware]— Resuma Flow request middleware.- server
#[server]— exposes an async fn as a server action.- submit
#[submit]— Resuma Flow form submission handler.