Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/renderer/hooks/useNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ export const useNotifications = ({

placeholderData: keepPreviousData,

// Deep-walks every cached notification per write; dominates cost on large inboxes.
structuralSharing: false,

// Fresh for at least one poll cycle at the fastest possible interval, so
// data isn't treated as stale before a refetch could realistically have
// occurred. Uses the static floor rather than the live interval because
Expand Down
Loading