Skip to content

Emit 'load' event on document when synced#23

Open
joakim wants to merge 1 commit intoyjs:masterfrom
joakim:master
Open

Emit 'load' event on document when synced#23
joakim wants to merge 1 commit intoyjs:masterfrom
joakim:master

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.

1 participant