Skip to content

Commit

Permalink
docs(json-crdt): ✏️ fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 29, 2024
1 parent 312285f commit ef7ddec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/json-crdt/__demos__/events-level1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const subscribe = (model: Model) => {
console.log(`Called: "onLocalChanges", ${ticks}`);
});
model.api.onFlush.listen((patch: Patch) => {
console.log(`Called: "onChanges"`);
console.log(`Called: "onFlush"`);
});

// Here we subscribe to "patch" events, those are events triggered by applying
Expand All @@ -59,7 +59,7 @@ const subscribe = (model: Model) => {
console.log(`Called: "onBeforeTransaction"`);
});
model.api.onTransaction.listen(() => {
console.log(`Called: "onBeforeTransaction"`);
console.log(`Called: "onTransaction"`);
});

// Here we subscribe to "reset" events, which are triggered by
Expand Down

0 comments on commit ef7ddec

Please sign in to comment.