Add ability to reset the mapping id, to facilitate destructor in rrweb (rrwebRecord.stop) (#49)

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent b005450c64
commit 65671be739
4 changed files with 10 additions and 2 deletions

View File

@@ -570,4 +570,9 @@ export function visitSnapshot(
walk(node);
}
export function cleanupSnapshot() {
// allow a new recording to start numbering nodes from scratch
_id = 1;
}
export default snapshot;