mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
Only emit "load" when sync is set to true
This commit is contained in:
@@ -113,7 +113,7 @@ export class Doc extends Observable {
|
||||
this.whenSynced = provideSyncedPromise()
|
||||
}
|
||||
this.isSynced = isSynced === undefined || isSynced === true
|
||||
if (!this.isLoaded) {
|
||||
if (this.isSynced && !this.isLoaded) {
|
||||
this.emit('load', [])
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user