Skip to main content

refresh_library_entry

Function refresh_library_entry 

Source
pub fn refresh_library_entry(
    name: &str,
    source_signature: &str,
    document_json: &str,
) -> Result<(), JsValue>
Expand description

UPDATE (update-components / edit-in-place commit): replace an existing entry’s document + signature. When the new document BUILDS differently (same_build) the entry is marked DIRTY: the next history run’s ACOMP self-heal lane re-executes the document, re-snapshots, and every instance of the part follows. When it builds the same — only its symbol, pads or BOM attributes moved — the snapshot and ports still describe it and are kept, so the part is not rebuilt for an edit that changed no geometry.

The wasm export; a NATIVE caller must call refresh_library_entry_impl, for the reason add_part_to_library gives.