From a7afe5f4d5a588153a2603bc14612f46ead9874d Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 15 Mar 2026 16:07:32 +0900 Subject: [PATCH] #61 --- frontend/src/pages/posts/PostDetailPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/posts/PostDetailPage.tsx b/frontend/src/pages/posts/PostDetailPage.tsx index 4c11c62..16697ba 100644 --- a/frontend/src/pages/posts/PostDetailPage.tsx +++ b/frontend/src/pages/posts/PostDetailPage.tsx @@ -14,7 +14,7 @@ import { Button } from '@/components/ui/button' import { toast } from '@/components/ui/use-toast' import { SITE_TITLE } from '@/config' import { fetchPost, toggleViewedFlg } from '@/lib/posts' -import { postsKeys } from '@/lib/queryKeys' +import { postsKeys, tagsKeys } from '@/lib/queryKeys' import { cn } from '@/lib/utils' import NotFound from '@/pages/NotFound' import ServiceUnavailable from '@/pages/ServiceUnavailable' @@ -140,6 +140,7 @@ export default (({ user }: Props) => { qc.setQueryData (postsKeys.show (postId), (prev: any) => newPost ?? prev) qc.invalidateQueries ({ queryKey: postsKeys.root }) + qc.invalidateQueries ({ queryKey: tagsKeys.root }) toast ({ description: '更新しました.' }) }}/> )}