feat: implement batch unread counts for notifications to reduce API calls and improve performance

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-03-10 01:26:37 -07:00
parent 7362da52d3
commit 403097646d
18 changed files with 450 additions and 51 deletions

View file

@ -98,5 +98,7 @@ export const cacheKeys = {
["notifications", "search", searchSpaceId, search, tab] as const,
sourceTypes: (searchSpaceId: number | null) =>
["notifications", "source-types", searchSpaceId] as const,
batchUnreadCounts: (searchSpaceId: number | null) =>
["notifications", "unread-counts-batch", searchSpaceId] as const,
},
};