fix(notifications): tolerate refresh failures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user