Skip to content

Commit 6c70ae3

Browse files
committed
refactor(#86): 로그아웃 시 전체 쿼리 초기화
1 parent 0291175 commit 6c70ae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/(auth)/_api/auth/auth.queries.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ export const useReissueMutation = () => {
2828
};
2929

3030
export const useDeleteSessionMutation = () => {
31+
const queryClient = useQueryClient();
32+
3133
return useMutation({
3234
mutationFn: deleteClientSession,
3335
onSuccess: () => {
3436
clearClientSessionCache();
37+
queryClient.clear();
3538
},
3639
});
3740
};

0 commit comments

Comments
 (0)