From 0d6be523a42b92affa42a988e925819760422591 Mon Sep 17 00:00:00 2001 From: Yun Feng Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] fix: isCheckout is not included in fullsnapshot event (#1141) * fix: isCheckout is not included in fullsnapshot event * add change log --- .changeset/stupid-ghosts-help.md | 5 +++++ packages/rrweb/src/record/index.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/stupid-ghosts-help.md diff --git a/.changeset/stupid-ghosts-help.md b/.changeset/stupid-ghosts-help.md new file mode 100644 index 00000000..efc09cd8 --- /dev/null +++ b/.changeset/stupid-ghosts-help.md @@ -0,0 +1,5 @@ +--- +'rrweb': patch +--- + +Fix: isCheckout is missed in all fullsnapshot events diff --git a/packages/rrweb/src/record/index.ts b/packages/rrweb/src/record/index.ts index c2e7a885..28271b9b 100644 --- a/packages/rrweb/src/record/index.ts +++ b/packages/rrweb/src/record/index.ts @@ -398,6 +398,7 @@ function record( 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