We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53df0e5 + 71d2e42 commit 1796627Copy full SHA for 1796627
src/json-crdt/model/Model.ts
@@ -169,7 +169,7 @@ export class Model<N extends JsonNode = JsonNode> implements Printable {
169
* through this method.
170
*
171
* For advanced use only, better use `applyPatch` instead. You MUST increment
172
- * the `tick` property and call `onchange` after calling this method.
+ * the `tick` property and call the necessary event emitters manually.
173
174
* @param op Any JSON CRDT Patch operation
175
* @ignore
@@ -349,6 +349,7 @@ export class Model<N extends JsonNode = JsonNode> implements Printable {
349
api.node = newNode;
350
newNode.api = api;
351
});
352
+ this.tick++;
353
this.onreset?.();
354
}
355
0 commit comments