Skip to main content

update

Function update 

Source
pub async fn update(
    registry: &Arc<ComponentRegistry>,
    snapshot: &Snapshot,
    updates: Map<String, Value>,
    calls: Vec<Call>,
    http: Option<Arc<Request>>,
) -> Result<Updated, LivewireError>
Expand description

Updates a component from its verified snapshot: properties first, then the calls, then a render unless an action or a redirect said to skip it.

The caller verifies the checksum, because the batch checks the client’s failure allowance once however many components it updates.

§Errors

Fails on a release-token mismatch, a property the component does not publish or has locked, an unknown action, a denied action, or a failed render.