MCPcopy
hub / github.com/callumalpass/tasknotes / setupDateChangeDetection

Method setupDateChangeDetection

src/main.ts:661–666  ·  view source on GitHub ↗

* Set up date change detection to refresh task states when the date rolls over

()

Source from the content-addressed store, hash-verified

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, {

Callers 1

Calls 2

startDateChangeDetectionFunction · 0.90
triggerMethod · 0.65

Tested by

no test coverage detected