From 29f81f48dbb24436b464839ed2df81e4ce7eb36c Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 28 Mar 2026 16:03:11 +0100 Subject: [PATCH] fix: remove redundant fetchNotifications() from onMount in NotificationBell Notifications are already fetched lazily inside toggleDropdown() when the user opens the dropdown. Only fetchUnreadCount() is needed on mount to show the badge. Closes #725 Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/components/NotificationBell.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/lib/components/NotificationBell.svelte b/frontend/src/lib/components/NotificationBell.svelte index 8a270aef..f8edc540 100644 --- a/frontend/src/lib/components/NotificationBell.svelte +++ b/frontend/src/lib/components/NotificationBell.svelte @@ -144,7 +144,6 @@ function relativeTime(isoString: string): string { } onMount(() => { - fetchNotifications(); fetchUnreadCount(); eventSource = new EventSource('/api/notifications/stream'); eventSource.addEventListener('notification', (e) => {