@whittakertech/mosaic / restoreSnapshot
Function: restoreSnapshot()
ts
function restoreSnapshot(snapshot): void;Defined in: snapshot.ts:62
Restores the DOM to a previously captured snapshot state.
This function reorders existing DOM nodes to match the snapshot.
Parameters
snapshot
A snapshot previously returned by createSnapshot
MosaicSnapshot | null | undefined
Returns
void
Remarks
If the snapshot is invalid or incomplete, restoration is a no-op. This function does not recreate or remove DOM nodes.