Skip to content

Commit

Permalink
passive -> active
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed Nov 6, 2023
1 parent 8c5158b commit fd89ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/2023-10-19-automerge-repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ In this latter example we use `DocHandle.whenReady`, which returns a promise whi
> handle.change(d => d.foo = "bar")
```

`DocHandle.on("change")` registers a callback that is called whenever the document is modified – either due to a local change or a sync message being received from another peer.
The `Repo` calls `DocHandle.on("change")` whenever the document is modified – either due to a local change or a sync message being received from another peer.

```
> const handle = repo.find("automerge:4CkUej7mAYnaFMfVnffDipc4Mtvn")
Expand Down

0 comments on commit fd89ed2

Please sign in to comment.