From c1f4c140fc809e9828818a3c8957f42e6ece21d9 Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Fri, 2 Oct 2026 13:04:44 +0330 Subject: [PATCH] fix(notifications): tolerate refresh failures --- src/contexts/NotificationsContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/contexts/NotificationsContext.tsx b/src/contexts/NotificationsContext.tsx index 0dc781f..b7b15f7 100644 --- a/src/contexts/NotificationsContext.tsx +++ b/src/contexts/NotificationsContext.tsx @@ -100,6 +100,8 @@ export function NotificationsProvider({ children }: { children: ReactNode }) { try { const payload = await api.getNotifications({ limit: PAGE_SIZE, offset: 0 }); applyNotificationList(payload); + } catch { + // Notification refresh is best-effort and must not break route rendering. } finally { setIsLoading(false); }