Skip to content

Commit

Permalink
feat: 북마크 좋아요/헤제를 누르면 리스트에 쿼리를 refetch 하도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Jul 24, 2023
1 parent 97b370a commit cfa31ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bookmarks/api/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ export const usePOSTBookmarkLikeQuery = ({
},
);
queryClient.refetchQueries(GET_LIKE_BOOKMARK_LIST(memberId));
refetchAllBookmarkQuery({ queryClient, memberId, bookmarkId });
},
});
};
Expand Down Expand Up @@ -569,6 +570,7 @@ export const useDELETEBookmarkLikeQuery = ({
},
);
queryClient.refetchQueries(GET_LIKE_BOOKMARK_LIST(memberId));
refetchAllBookmarkQuery({ queryClient, memberId, bookmarkId });
},
});
};
Expand Down

0 comments on commit cfa31ed

Please sign in to comment.