MCPcopy Index your code
hub / github.com/MALSync/MALSync / updateEvent

Function updateEvent

src/_provider/singleAbstract.ts:477–488  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

475 }
476
477 protected updateEvent(data) {
478 if (this.isDirty()) {
479 this.logger.log('Ignore event');
480 return;
481 }
482
483 if (data && data.state) {
484 this.setStateEl(data.state);
485 this.persistenceState = this.getStateEl();
486 emitter.emit('syncPage_fillUi');
487 }
488 }
489
490 public isDirty(): boolean {
491 return (

Callers

nothing calls this directly

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected