Skip to main content

Module diff

Module diff 

Source

Functions§

create_ir_node_tree
Create a tree from an IRNode (supports ForEach, When/If, and regular elements)
create_tree
Create a new subtree from an element
diff_props
Diff two sets of props and generate SetProp/RemoveProp patches
reconcile
Reconcile an element tree against the instance tree and generate patches
reconcile_ir
Reconcile an IRNode tree against the instance tree and generate patches This is the primary entry point for the IRNode-based reconciliation system, which supports first-class ForEach, When/If, and custom item variable names.
reconcile_ir_node
Reconcile an existing tree against a new IRNode
reconcile_keyed_children
Reconcile children using keys for efficient updates Uses LIS (Longest Increasing Subsequence) algorithm to minimize DOM moves
reconcile_node
Reconcile a single node with a new element
replace_item_bindings
Replace item bindings (Value::Binding with is_item() or TemplateString with item bindings) with actual item values OPTIMIZED: Uses single-pass replacement instead of O(n²) repeated scans This is a convenience wrapper that uses “item” as the default item name.
replace_item_bindings_with_name
Replace item bindings in an Element with a configurable item name This is the full implementation that supports custom iteration variable names.