Skip to content

Commit

Permalink
fix: update queryClient for invalidateQUeries
Browse files Browse the repository at this point in the history
  • Loading branch information
1yoouoo authored and dev-hamster committed Aug 23, 2023
1 parent 8800166 commit a821a27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/settings/hashtag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const Page = ({ accessToken, userId }: withAuthProps) => {

const queryClient = useQueryClient();
const updateFavoriteTagList = () => {
queryClient.fetchQuery({
queryKey: ['user', 'tagList', 10], // TODO 페이지네이션
});
queryClient.invalidateQueries([userId, 'tagList']);
};

return (
Expand Down

0 comments on commit a821a27

Please sign in to comment.