Pages corrections widget
This commit is contained in:
parent
ed9dadd77a
commit
b6bb7b61ad
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user