From 738b6aad34cb2a2cdb7b70e11fea194735dc0812 Mon Sep 17 00:00:00 2001 From: Timothy Cardoza Date: Tue, 3 Mar 2026 19:02:23 -0600 Subject: [PATCH] stopped load flickering --- src/store/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/store/index.ts b/src/store/index.ts index 6c1f5e8..e24fd4e 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -1035,7 +1035,14 @@ export const initStore = async () => { const taskMap = new Map(currentTasks.map(t => [t.id, t])); allIncomplete.forEach((r: any) => { if (r.tags?.includes("__template__")) return; + const existing = taskMap.get(r.id); + + // Prevent DOM rebuilding/flickering for tasks that haven't changed + if (existing && existing.updated === r.updated) { + return; // Keeps the exact same reference in the map + } + // If existing has content, keep it. Otherwise use new record (which likely has no content yet) const newTask = mapRecordToTask(r); if (existing && existing.content) {