File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,15 @@ export class EventBufferProxy implements EventBuffer {
99
99
100
100
/** Switch the used buffer to the compression worker. */
101
101
private async _switchToCompressionWorker ( ) : Promise < void > {
102
- const { events } = this . _fallback ;
102
+ const { events, hasCheckout } = this . _fallback ;
103
103
104
104
const addEventPromises : Promise < void > [ ] = [ ] ;
105
105
for ( const event of events ) {
106
106
addEventPromises . push ( this . _compression . addEvent ( event ) ) ;
107
107
}
108
108
109
+ this . _compression . hasCheckout = hasCheckout ;
110
+
109
111
// We switch over to the new buffer immediately - any further events will be added
110
112
// after the previously buffered ones
111
113
this . _used = this . _compression ;
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ export async function addEvent(
52
52
try {
53
53
if ( isCheckout && replay . recordingMode === 'buffer' ) {
54
54
replay . eventBuffer . clear ( ) ;
55
+ }
56
+
57
+ if ( isCheckout ) {
55
58
replay . eventBuffer . hasCheckout = true ;
56
59
}
57
60
You can’t perform that action at this time.
0 commit comments