fix(notifications): tolerate refresh failures
This commit is contained in:
@@ -100,6 +100,8 @@ export function NotificationsProvider({ children }: { children: ReactNode }) {
|
|||||||
try {
|
try {
|
||||||
const payload = await api.getNotifications({ limit: PAGE_SIZE, offset: 0 });
|
const payload = await api.getNotifications({ limit: PAGE_SIZE, offset: 0 });
|
||||||
applyNotificationList(payload);
|
applyNotificationList(payload);
|
||||||
|
} catch {
|
||||||
|
// Notification refresh is best-effort and must not break route rendering.
|
||||||
} finally {
|
} finally {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user