MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / applyFilters

Method applyFilters

src/views/StatsView.ts:967–980  ·  view source on GitHub ↗

* Apply current filters and refresh statistics with debouncing

()

Source from the content-addressed store, hash-verified

965 * Apply current filters and refresh statistics with debouncing
966 */
967 private async applyFilters() {
968 this.savePersistedFilters();
969
970 if (this.debounceTimeout) {
971 window.clearTimeout(this.debounceTimeout);
972 }
973
974 this.debounceTimeout = window.setTimeout(() => {
975 void (async () => {
976 await this.refreshStats();
977 this.debounceTimeout = null;
978 })();
979 }, 300);
980 }
981
982 /**
983 * Check if stats cache is valid

Callers 2

renderFiltersMethod · 0.95

Calls 4

savePersistedFiltersMethod · 0.95
refreshStatsMethod · 0.95
clearTimeoutMethod · 0.65
setTimeoutMethod · 0.65

Tested by

no test coverage detected