Skip to content

Commit

Permalink
[#208] Fix: 프로필 페이지 팔로우 팔로이 카운트 캐시 오류 수정 (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienrum authored Jul 22, 2024
1 parent 33ef2b2 commit 7001725
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/apis/follow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ export const usePostFollowAPI = (userId: string, myId: string) => {
queryClient.invalidateQueries({
queryKey: ['profile', userId],
});
queryClient.invalidateQueries({
queryKey: ['profile', myId],
});
queryClient.invalidateQueries({
queryKey: ['followees', myId],
});
Expand All @@ -95,6 +98,9 @@ export const useDeleteFollowAPI = (userId: string, myId: string) => {
queryClient.invalidateQueries({
queryKey: ['profile', userId],
});
queryClient.invalidateQueries({
queryKey: ['profile', myId],
});
queryClient.invalidateQueries({
queryKey: ['followees', myId],
});
Expand Down

0 comments on commit 7001725

Please sign in to comment.