diff --git a/README.md b/README.md index 7b20489..a5f4035 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ const onPatch = (p: DocHandlePatchPayload) => { view.updateState(newState) } // somehow wire up the callback -handle.on("patch", onPatch) +handle.on("change", onPatch) ``` ## Schema Mapping