From 80669dc8cbee116c15cd3ef6af2e2e430e9bb445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A4=EC=A0=95=EB=AF=BC?= Date: Sat, 12 Oct 2024 16:27:14 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EB=82=B4=20useMutation=20=ED=9B=85=20depreacted=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/shared/hooks/useMutation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/shared/hooks/useMutation.ts b/frontend/src/shared/hooks/useMutation.ts index f332c45f..ecdb990c 100644 --- a/frontend/src/shared/hooks/useMutation.ts +++ b/frontend/src/shared/hooks/useMutation.ts @@ -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 = (mutateFn: (...params: P) => Promise) => { const [data, setData] = useState(null);