Skip to content

Commit 5bb583f

Browse files
committed
fix: 변경된 /pages api에 맞춰서 useUpdatePage hook 수정
1 parent 04d72e7 commit 5bb583f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

frontend/src/hooks/usePages.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ export const useDeletePage = () => {
4040
};
4141

4242
export const useUpdatePage = () => {
43-
const queryClient = useQueryClient();
44-
4543
return useMutation({
4644
mutationFn: ({ id, pageData }: { id: number; pageData: PageRequest }) =>
4745
updatePage(id, pageData),
48-
onSuccess: () => {
49-
queryClient.invalidateQueries({ queryKey: ["pages"] });
50-
},
5146
});
5247
};

0 commit comments

Comments
 (0)