Documentation / @ripl/dom / reconcileNode
Function: reconcileNode() ​
reconcileNode<
TElement>(domParent,vnode,domCache,options):void
Defined in: dom/src/vdom.ts:226
Reconciles a virtual node tree against the live DOM, creating, updating, reordering, and removing child elements as needed.
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TElement | unknown |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
domParent | Element | The live element whose children are reconciled. |
vnode | VNode<TElement> | The virtual node describing the desired children. |
domCache | Map<string, Element> | Node cache keyed by reconciliation id, reused across passes so a node that moves between parents is re-attached rather than re-created. Entries left detached by this pass are swept before returning. |
options | ReconcilerOptions<TElement> | Element lifecycle callbacks and filtering. |
Returns ​
void