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.
1 parent a179561 commit 91a37aeCopy full SHA for 91a37ae
src/json-crdt/model/api/ModelApi.ts
@@ -286,7 +286,7 @@ export class ModelApi<N extends JsonNode = JsonNode> implements SyncStore<JsonNo
286
public flush(): Patch {
287
const patch = this.builder.flush();
288
this.next = 0;
289
- this.onFlush.emit(patch);
+ if (patch.ops.length) this.onFlush.emit(patch);
290
return patch;
291
}
292
0 commit comments