From b1bf990c83274adf4d3c762b9998494a98def64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=84=B8=EB=AF=BC?= <89172499+semnil5202@users.noreply.github.com> Date: Sat, 27 Apr 2024 17:01:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=A7=81?= =?UTF-8?q?=ED=9B=84=20ideas=20Query=20refetch=20=EC=88=98=ED=96=89=20?= =?UTF-8?q?=EB=A1=9C=EC=A7=81=20=EC=9C=84=EC=B9=98=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?(#133)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Login/KakaoRedirect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Login/KakaoRedirect.tsx b/src/pages/Login/KakaoRedirect.tsx index 55432081..80809beb 100644 --- a/src/pages/Login/KakaoRedirect.tsx +++ b/src/pages/Login/KakaoRedirect.tsx @@ -22,9 +22,9 @@ const KakaoRedirect = () => { localStorage.setItem('userToken', accessToken); localStorage.setItem('user', JSON.stringify(authMemberInformation)); - queryClient.refetchQueries({ queryKey: ['ideas'] }); - navigate('/'); + + queryClient.refetchQueries({ queryKey: ['ideas'] }); return; }