Skip to main content

live_component

Attribute Macro live_component 

Source
#[live_component]
Expand description

Proc macro attribute to define a Live Component. Automatically implements the LiveComponent trait and wires #[live_event] methods.

Only the first present rullst_event, action or event string field selects a handler, and at most one runs per message; other payload keys and values, such as form inputs, never dispatch.