Skip to content

Commit

Permalink
fix: 로그인 직후 ideas Query refetch 수행 로직 위치 수정 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 authored Apr 27, 2024
1 parent 9b614b9 commit b1bf990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Login/KakaoRedirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b1bf990

Please sign in to comment.