Skip to content

Commit

Permalink
feat: 프로젝트 내 useMutation 훅 depreacted 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
cruelladevil committed Oct 12, 2024
1 parent 2130edf commit 80669dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/shared/hooks/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import { useLoginModalByError } from '@/features/auth/hooks/useLoginModalByError
import AuthError from '@/shared/remotes/AuthError';
import type { ErrorResponse } from '../types/errorResponse';

/**
* @deprecated react-query의 useMutation 훅을 사용해주세요.
*/
// eslint-disable-next-line
export const useMutation = <T, P extends any[]>(mutateFn: (...params: P) => Promise<T>) => {
const [data, setData] = useState<T | null>(null);
Expand Down

0 comments on commit 80669dc

Please sign in to comment.