From 2953cc02ccc639d2377c27024c9d4b02c2872fda Mon Sep 17 00:00:00 2001 From: CHOI GIHOAWN Date: Fri, 30 Aug 2024 17:06:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20debounce=20delay=20=EA=B0=92=20=EC=88=98?= =?UTF-8?q?=EC=A0=95'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/SearchPlantPage.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/SearchPlantPage.tsx b/src/pages/SearchPlantPage.tsx index 308a6e9..ee72d0a 100644 --- a/src/pages/SearchPlantPage.tsx +++ b/src/pages/SearchPlantPage.tsx @@ -14,13 +14,11 @@ interface SearchPlantPageProps { onClose: () => void; } -// TODO: 서스펜스 폴백 수정 - const SearchPlantPage = ({ onClose }: SearchPlantPageProps) => { const [query, setQuery] = useState(''); // eslint-disable-next-line react-hooks/exhaustive-deps - const debouncedSetQuery = useCallback(debounce(setQuery, 200), []); + const debouncedSetQuery = useCallback(debounce(setQuery, 500), []); return (