From 1956f3ecbbeb89dc48630e50c62cfd328ebf01b7 Mon Sep 17 00:00:00 2001 From: miko Date: Tue, 16 Jan 2024 18:24:25 +0200 Subject: [PATCH] Don't re-fetch categoryNotifications, when notifications change. (Caused notifications to be re-fetched when item was deleted in category, which made items flash. And re-fetched data wouldn't include the change anyway, until a min or so, so didn't why it would be needed.) --- ui/page/notifications/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/page/notifications/view.jsx b/ui/page/notifications/view.jsx index affe7cd064..f80378acd0 100644 --- a/ui/page/notifications/view.jsx +++ b/ui/page/notifications/view.jsx @@ -105,7 +105,7 @@ export default function NotificationsPage(props: Props) { } } } - }, [name, notifications, stringifiedNotificationCategories, doNotificationList]); + }, [name, stringifiedNotificationCategories, doNotificationList]); React.useEffect(() => { if (!notificationCategories) {