Skip to content

Commit

Permalink
Only emit "load" when sync is set to true
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyPesse committed Oct 22, 2023
1 parent 9a7b659 commit e7572d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Doc.js
Expand Up @@ -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', [])
}
})
Expand Down

0 comments on commit e7572d6

Please sign in to comment.