fix: isCheckout is not included in fullsnapshot event (#1141)

* fix: isCheckout is not included in fullsnapshot event

* add change log
This commit is contained in:
Yun Feng
2023-02-17 18:50:58 +11:00
committed by GitHub
parent aaabdbdff5
commit 3416c3a769
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
'rrweb': patch
---
Fix: isCheckout is missed in all fullsnapshot events

View File

@@ -398,6 +398,7 @@ function record<T = eventWithTime>(
initialOffset: getWindowScroll(window),
},
}),
isCheckout,
);
mutationBuffers.forEach((buf) => buf.unlock()); // generate & emit any mutations that happened during snapshotting, as can now apply against the newly built mirror