Open joakim opened 1 year ago
I needed this event to use the whenLoaded promise, so I added it. Hope I got it right.
whenLoaded
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 :)
sync
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 :)