Skip to content

Commit

Permalink
fix: mutateData response 반환하지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ukkodeveloper authored and cruelladevil committed Oct 4, 2023
1 parent 6ea7b54 commit 2f33079
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/src/shared/hooks/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ export const useMutation = <T, P extends any[]>(mutateFn: (...params: P) => Prom
try {
const responseBody = await mutateFn(...params);
setData(responseBody);

//event handler에서 바로 처리하기 위해서 response를 return한다.
return responseBody;
} catch (error) {
if (error instanceof AuthError) {
logout();
Expand Down

0 comments on commit 2f33079

Please sign in to comment.