From 79c3528bbcd82c6eed67b17747ded31af09a4a64 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 8 Nov 2025 17:48:54 +0900
Subject: fix(frontend): Fix incorrect caching settings

---
 frontend/src/components/FeedItem.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'frontend/src/components/FeedItem.tsx')

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?.();
 		}
 	};
-- 
cgit v1.2.3-70-g09d2

