* Set up date change detection to refresh task states when the date rolls over
()
| 659 | * Set up date change detection to refresh task states when the date rolls over |
| 660 | */ |
| 661 | setupDateChangeDetection(): void { |
| 662 | startDateChangeDetection({ |
| 663 | registerTimer: (timerId) => this.registerInterval(timerId), |
| 664 | emitDateChanged: () => this.emitter.trigger(EVENT_DATE_CHANGED), |
| 665 | }); |
| 666 | } |
| 667 | |
| 668 | onunload() { |
| 669 | this.emitter?.trigger(TASKNOTES_RUNTIME_LIFECYCLE_RAW_EVENTS.unloading, { |
no test coverage detected