aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/FeedItem.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-11-08 17:48:54 +0900
committernsfisis <nsfisis@gmail.com>2025-11-08 17:48:54 +0900
commit79c3528bbcd82c6eed67b17747ded31af09a4a64 (patch)
tree0b544d66cfb70cdce15b005b6dffbe4aeb218248 /frontend/src/components/FeedItem.tsx
parent6dbc5bbcacf99e4941ee8e1fb67bd132d0f517ed (diff)
downloadfeedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.tar.gz
feedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.tar.zst
feedaka-79c3528bbcd82c6eed67b17747ded31af09a4a64.zip
fix(frontend): Fix incorrect caching settingsv0.4.1
Diffstat (limited to 'frontend/src/components/FeedItem.tsx')
-rw-r--r--frontend/src/components/FeedItem.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/frontend/src/components/FeedItem.tsx b/frontend/src/components/FeedItem.tsx
index 29cd531..80c8992 100644
--- a/frontend/src/components/FeedItem.tsx
+++ b/frontend/src/components/FeedItem.tsx
@@ -15,17 +15,19 @@ interface Props {
onFeedUnsubscribed?: () => void;
}
+const urqlContextFeed = { additionalTypenames: ["Feed"] };
+
export function FeedItem({ feed, onFeedUnsubscribed }: Props) {
const [, markFeedRead] = useMutation(MarkFeedReadDocument);
const [, markFeedUnread] = useMutation(MarkFeedUnreadDocument);
const [, unsubscribeFeed] = useMutation(UnsubscribeFeedDocument);
const handleMarkAllRead = async (feedId: string) => {
- await markFeedRead({ id: feedId });
+ await markFeedRead({ id: feedId }, urqlContextFeed);
};
const handleMarkAllUnread = async (feedId: string) => {
- await markFeedUnread({ id: feedId });
+ await markFeedUnread({ id: feedId }, urqlContextFeed);
};
const handleUnsubscribeFeed = async (feedId: string) => {
@@ -33,7 +35,7 @@ export function FeedItem({ feed, onFeedUnsubscribed }: Props) {
"Are you sure you want to unsubscribe from this feed?",
);
if (confirmed) {
- await unsubscribeFeed({ id: feedId });
+ await unsubscribeFeed({ id: feedId }, urqlContextFeed);
onFeedUnsubscribed?.();
}
};