Add ability to reset the mapping id, to facilitate destructor in rrweb (rrwebRecord.stop) (#49)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user