yjs / y-prosemirror

ProseMirror editor binding for Yjs
https://demos.yjs.dev/prosemirror/prosemirror.html
MIT License
328 stars 115 forks source link

Debounce or otherwise limit the rate of update generation #143

Open link2xt opened 11 months ago

link2xt commented 11 months ago

There is currently no way to control the rate of update generation, at least the one I am aware of. Are updates generated on every character typed or is there some delay? If there is, how can it be configured?

While it is possible to collect updates and call mergeUpdates (or mergeUpdatesV2) before sending them over the wire, this seems to be an inefficient way to do this.

Downstream issue: https://codeberg.org/webxdc/editor/issues/66