diff --git a/src/apis/follow.ts b/src/apis/follow.ts index b122dbb..ec487a7 100644 --- a/src/apis/follow.ts +++ b/src/apis/follow.ts @@ -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], }); @@ -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], });