Skip to content

Commit

Permalink
README: correct onPatch -> onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjg committed May 24, 2024
1 parent 0ecdb10 commit 262d404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const onPatch = (p: DocHandlePatchPayload<any>) => {
view.updateState(newState)
}
// somehow wire up the callback
handle.on("patch", onPatch)
handle.on("change", onPatch)
```

## Schema Mapping
Expand Down

0 comments on commit 262d404

Please sign in to comment.