Skip to content

Commit

Permalink
fix some typos in optimize-storage.md (#1565)
Browse files Browse the repository at this point in the history
* fix some typos in optimize-storage.md

* Update docs/recipes/optimize-storage.md

* Create metal-mugs-mate.md

---------

Co-authored-by: Justin Halsall <[email protected]>
  • Loading branch information
riadhmouamnia and Juice10 authored Sep 13, 2024
1 parent 04ee6ed commit 61ab209
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .changeset/metal-mugs-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 3 additions & 3 deletions docs/recipes/optimize-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -78,7 +78,7 @@ import { pack } from '@rrweb/packer';

rrweb.record({
emit(event) {},
packFn: rrweb.pack,
packFn: pack,
});
```

Expand All @@ -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,
});
```

Expand Down

0 comments on commit 61ab209

Please sign in to comment.