Skip to content

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 ParameterDefault type
TElementunknown

Parameters ​

ParameterTypeDescription
domParentElementThe live element whose children are reconciled.
vnodeVNode<TElement>The virtual node describing the desired children.
domCacheMap<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.
optionsReconcilerOptions<TElement>Element lifecycle callbacks and filtering.

Returns ​

void