From abe6eee36ac8c6f82c51f91863a3fbb5343b6bc1 Mon Sep 17 00:00:00 2001 From: beom Date: Wed, 15 May 2024 21:51:52 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=A0=84=EC=B2=B4=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=EB=8D=B0=EC=9D=B4=ED=84=B0=EA=B0=80=20=EB=B0=94?= =?UTF-8?q?=EB=80=8C=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LinkAdd.tsx | 3 +++ components/modal/DeleteLink.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/components/LinkAdd.tsx b/components/LinkAdd.tsx index 2821ae6a2..871c7c1a5 100644 --- a/components/LinkAdd.tsx +++ b/components/LinkAdd.tsx @@ -22,6 +22,9 @@ export default function LinkAdd() { queryClient.invalidateQueries({ queryKey: ["individualList", Number(folderId.data)], }); + queryClient.invalidateQueries({ + queryKey: ["allList"], + }); }, }); diff --git a/components/modal/DeleteLink.tsx b/components/modal/DeleteLink.tsx index 84d4bda2f..222c498a7 100644 --- a/components/modal/DeleteLink.tsx +++ b/components/modal/DeleteLink.tsx @@ -29,6 +29,9 @@ export default function DeleteFolder({ queryClient.invalidateQueries({ queryKey: ["individualList", Number(folderId.data)], }); + queryClient.invalidateQueries({ + queryKey: ["allList"], + }); }, });