Skip to main content

max / goingson

Fix task sort headers not resorting rows sortTasks() called tasks.load(), but load() no-ops while the 30s task cache is fresh, so clicking a column header flipped the sort arrow but never refetched. Invalidate the tasks cache first, mirroring applyFilters and clearFilters. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-07-15 15:24 UTC
Commit: 245c3e328b9cfd4b52231292a04884c422cf086f
Parent: 6769047
1 file changed, +5 insertions, -0 deletions
@@ -172,6 +172,11 @@
172 172 }
173 173
174 174 updateSortArrows();
175 + // load() no-ops while the tasks cache is fresh (30s); a sort change must
176 + // refetch with the new order, so invalidate first — mirrors applyFilters
177 + // and clearFilters (Perf M3). Without this the arrow flips but rows don't
178 + // move until the cache ages out.
179 + GoingsOn.cache.invalidate('tasks');
175 180 GoingsOn.tasks.load();
176 181 }
177 182