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

feat(sync): Only send sync events after one second of inactivity #2238

Open
wants to merge 1 commit into
base: websocket-reconnect
Choose a base branch
from

Conversation

almet
Copy link
Member

@almet almet commented Oct 25, 2024

This is a first take, and probably doesn't really cut it as events from different sources will overwrite each other (if somebody is fast enough to do two actions on different objects in less than 1 second, but still).

@@ -430,3 +430,15 @@ export function deepEqual(object1, object2) {
export function slugify(str) {
return (str || 'data').replace(/[^a-z0-9]/gi, '_').toLowerCase()
}

export function debounce(callback, wait) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

1 participant