Skip to content

Commit

Permalink
feat : 전체 링크 데이터가 바뀌지 않는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
gibeom0218 committed May 15, 2024
1 parent 747091f commit abe6eee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/LinkAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export default function LinkAdd() {
queryClient.invalidateQueries({
queryKey: ["individualList", Number(folderId.data)],
});
queryClient.invalidateQueries({
queryKey: ["allList"],
});
},
});

Expand Down
3 changes: 3 additions & 0 deletions components/modal/DeleteLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export default function DeleteFolder({
queryClient.invalidateQueries({
queryKey: ["individualList", Number(folderId.data)],
});
queryClient.invalidateQueries({
queryKey: ["allList"],
});
},
});

Expand Down

0 comments on commit abe6eee

Please sign in to comment.