stopped load flickering

This commit is contained in:
2026-03-03 19:02:23 -06:00
parent f1200a2c78
commit 738b6aad34
+7
View File
@@ -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) {