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

Emit 'load' event on document when synced #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joakim
Copy link

@joakim joakim commented Feb 4, 2023

I needed this event to use the whenLoaded promise, so I added it. Hope I got it right.

See this comment and the properties below:
https://github.com/yjs/yjs/blob/e0a2f11db325ae570ca273c4e75a1b9e8655491a/src/utils/Doc.js#L77

One could also add the sync event. I don't know what that would mean for IndexedDB, so I'll leave it as an excercise for the reader :)

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.

None yet

1 participant