Only emit "load" when sync is set to true
This commit is contained in:
parent
9a7b659919
commit
e7572d61c6
@ -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', [])
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user