mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
only emit loaded change on change
This commit is contained in:
parent
62cc78430d
commit
12a74fa454
@ -143,6 +143,8 @@ export class ContentModule implements Content {
|
||||
}
|
||||
|
||||
private emitLoaded() {
|
||||
this.emitter.emit('loaded', this.streamLoaded && this.contactLoaded);
|
||||
if (this.streamLoaded && this.contentLoaded) {
|
||||
this.emitter.emit('loaded', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user