Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to delay changes? #6

Open
amilich opened this issue Feb 1, 2020 · 3 comments
Open

Is there any way to delay changes? #6

amilich opened this issue Feb 1, 2020 · 3 comments

Comments

@amilich
Copy link

amilich commented Feb 1, 2020

If I want my string binding to delay sending inserts/deletes on every single keyup, is there any way to delay events to condense multiple operations?

So, if I type "abcd," I see a single "si" operation to insert "abcd" instead of 4 separate inserts.

@RisingGeek
Copy link

RisingGeek commented May 26, 2020

This will require debounce @nateps . Am I correct?

@nateps
Copy link
Contributor

nateps commented May 26, 2020

The OT type can coalesce ops using compose, and it does this by default when the round trip time is slower than someone's typing speed. Would be a good feature request on https://github.com/share/sharedb to provide configuration for a throttle interval. Could be implemented as an option on the connection, document, or submitOp method.

@RisingGeek
Copy link

Okay, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants