getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
12 stars 5 forks source link

fix: fixes several cases where we access an undefined value #171

Closed billyvg closed 6 months ago

billyvg commented 6 months ago

Fixes several cases where we access an undefined value.

In the case of lastFullSnapshotEvent, it can be undefined if we receive an incremental event before a full snapshot. This can happen, for example, if a user refreshes while canvas worker is working and on reload it finishes to call the mutation callback and before fullsnapshot occurs.

Fixes JAVASCRIPT-2S3R Fixes JAVASCRIPT-2QS1 Fixes JAVASCRIPT-2FQ5 Fixes JAVASCRIPT-2H2H

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size
rrweb - record only (gzipped) 16.75 KB (+0.02% 🔺)
rrweb - record & CanvasManager only (gzipped) 19.41 KB (+0.02% 🔺)
rrweb - record only (min) 57.14 KB (+0.01% 🔺)
rrweb - record with treeshaking flags (gzipped) 15.54 KB (+0.04% 🔺)