From 7aac8cdcefadb1a4d3ee6f898cb46ff20cebb96b Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 6 Mar 2024 15:11:16 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20perf:=20change=20the=20debounce?= =?UTF-8?q?=20to=20300=20ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/projects/ProjectSearchBar/ProjectSearchBar.tsx | 2 +- .../projects/ProjectSearchBar/ProjectSearchBarDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx index f88709ef..22e8b2f7 100644 --- a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx +++ b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBar.tsx @@ -42,7 +42,7 @@ export const ProjectSearchBar = ({ onChange }: ProjectSearchBarProps) => { }, }); - const debouncedInputValue = useDebounce(inputValue, 500); + const debouncedInputValue = useDebounce(inputValue, 300); const fetchProjects = useCallback( async (inputValue: string) => { diff --git a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx index a3988ae3..e49b44d0 100644 --- a/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx +++ b/packages/frontend/src/components/projects/ProjectSearchBar/ProjectSearchBarDialog.tsx @@ -44,7 +44,7 @@ export const ProjectSearchBarDialog = ({ }, }); - const debouncedInputValue = useDebounce(inputValue, 500); + const debouncedInputValue = useDebounce(inputValue, 300); const fetchProjects = useCallback( async (inputValue: string) => {