Skip to main content

should_skip

Function should_skip 

Source
pub fn should_skip(
    registry: &Arc<ComponentRegistry>,
    snapshot: &Snapshot,
    updates: &Map<String, Value>,
    calls: &[Call],
) -> bool
Expand description

Whether an update can be answered with skip instead of a render.

Upstream’s rule: a child whose parent rendered it this request, whose props are all unchanged, whose calls are only $commit, and which holds no bindings needs no render at all.