From 8343d069cacebe5ed695c3fabd6c6d6c90ea3012 Mon Sep 17 00:00:00 2001 From: abg3000 Date: Wed, 28 Aug 2024 00:48:08 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=AA=A8=EC=9E=84=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=20=EC=A4=91=EB=B3=B5=EC=83=9D=EC=84=B1=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-user-info/components/Form/IntroInfoForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web-domains/src/user/features/get-user-info/components/Form/IntroInfoForm.tsx b/packages/web-domains/src/user/features/get-user-info/components/Form/IntroInfoForm.tsx index 01f29bab..7d73bfb4 100644 --- a/packages/web-domains/src/user/features/get-user-info/components/Form/IntroInfoForm.tsx +++ b/packages/web-domains/src/user/features/get-user-info/components/Form/IntroInfoForm.tsx @@ -2,6 +2,7 @@ import { Txt, Button } from '@sambad/sds/components'; import { colors } from '@sambad/sds/theme'; +import debounce from 'lodash-es/debounce'; import { useForm } from 'react-hook-form'; import { Params as MeetingParams } from '@/common/apis/queries/useCreateMeeting'; @@ -55,7 +56,10 @@ export const IntroInfoForm = () => { meetingTypeIds: meetingTypeIds ? meetingTypeIds.split(',').map(Number) : [], } as MeetingParams; - createMeeting(meetingParams, meetingMemberParams); + const mutate = debounce(() => { + createMeeting(meetingParams, meetingMemberParams); + }, 300); + mutate(); } // 모임원인 경우 모임 가입 초대코드 if (role.params === 'MEMBER') {