From 8699493e49001b773f731f547dcb2d35044373e3 Mon Sep 17 00:00:00 2001 From: YOOJS1205 Date: Wed, 31 Jan 2024 23:56:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A6=AC=EB=B7=B0=20=EC=9E=91=EC=84=B1=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C=20=ED=9B=84=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8=20=EC=95=88=20=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EC=9D=B4=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/review/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/review/page.tsx b/src/app/review/page.tsx index 7a729f33..a4d44a77 100644 --- a/src/app/review/page.tsx +++ b/src/app/review/page.tsx @@ -22,7 +22,9 @@ export default function Page() { const myRevisitedCount = searchParams.get('myRevisitedCount') ?? 0; const { mutate: postLog } = usePostLog({ onSuccess: () => { - queryClient.invalidateQueries({ queryKey: ['get-myLog'] }); + queryClient.refetchQueries({ + queryKey: ['get-myLog'], + }); push( `/review/complete?storeName=${storeName}&myRevisitedCount=${ Number(myRevisitedCount) + 1