Merge pull request #587 from SamyPesse/patch-1
Only emit "load" when sync is set to true
This commit is contained in:
commit
5861876e6f
@ -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