Skip to content

Commit

Permalink
fix: isCheckout is not included in fullsnapshot event (#1141)
Browse files Browse the repository at this point in the history
* fix: isCheckout is not included in fullsnapshot event

* add change log
  • Loading branch information
YunFeng0817 authored Feb 17, 2023
1 parent aaabdbd commit 3416c3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-ghosts-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'rrweb': patch
---

Fix: isCheckout is missed in all fullsnapshot events
1 change: 1 addition & 0 deletions packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3416c3a

Please sign in to comment.