Skip to content

Commit

Permalink
Don't re-fetch categoryNotifications, when notifications change.
Browse files Browse the repository at this point in the history
(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.)
  • Loading branch information
miko committed Jan 16, 2024
1 parent 5302787 commit 1956f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/page/notifications/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function NotificationsPage(props: Props) {
}
}
}
}, [name, notifications, stringifiedNotificationCategories, doNotificationList]);
}, [name, stringifiedNotificationCategories, doNotificationList]);

React.useEffect(() => {
if (!notificationCategories) {
Expand Down

0 comments on commit 1956f3e

Please sign in to comment.