Pages corrections widget

This commit is contained in:
alma 2026-01-16 17:25:46 +01:00
parent ed9dadd77a
commit b6bb7b61ad

View File

@ -239,7 +239,7 @@ export function Email() {
console.log('[Email Widget] 📧 Dispatching new emails event', {
newEmailsCount: newEmails.length,
newEmailIds: Array.from(newEmailIds),
previousCount,
previousCount: lastUnreadCountRef.current,
currentCount: currentUnreadCount,
previousEmailIds: Array.from(lastEmailIdsRef.current),
});
@ -248,14 +248,12 @@ export function Email() {
detail: {
emails: transformedEmails,
accountMap: accountMap,
previousCount,
previousCount: lastUnreadCountRef.current,
currentCount: currentUnreadCount,
}
}));
}
}
}
}
// Always update lastEmailIdsRef to track current state
lastEmailIdsRef.current = currentEmailIds;