Core API Overview > @adpt/core > Adapt > domActiveElems
Adapt.domActiveElems() function
Given a DomDiff, generated from an old and new DOM, returns an Array of the Elements that will be active if this DomDiff is deployed. That means all of the Elements in the new DOM plus the deleted Elements from the old DOM.
Signature:
export declare function domActiveElems<E extends AdaptMountedElement = AdaptMountedElement>(diff: DomDiff<E>): E[];
Parameters
Parameter | Type | Description |
---|---|---|
diff | DomDiff<E> |
Returns:
E[]