diff --git a/.changeset/metal-mugs-mate.md b/.changeset/metal-mugs-mate.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/metal-mugs-mate.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/docs/recipes/optimize-storage.md b/docs/recipes/optimize-storage.md index a50118bf89..9a67d10331 100644 --- a/docs/recipes/optimize-storage.md +++ b/docs/recipes/optimize-storage.md @@ -49,7 +49,7 @@ rrweb.record({ rrweb.record({ emit(event) {}, sampling: { - // Configure which kins of mouse interaction should be recorded + // Configure which kinds of mouse interaction should be recorded mouseInteraction: { MouseUp: false, MouseDown: false, @@ -78,7 +78,7 @@ import { pack } from '@rrweb/packer'; rrweb.record({ emit(event) {}, - packFn: rrweb.pack, + packFn: pack, }); ``` @@ -88,7 +88,7 @@ And you need to pass packer.unpack as the `unpackFn` in replaying. import { unpack } from '@rrweb/packer'; const replayer = new rrweb.Replayer(events, { - unpackFn: rrweb.unpack, + unpackFn: unpack, }); ```