🚀 perf: change the debounce to 300 ms

This commit is contained in:
Wahyu Kurniawan 2024-03-06 15:11:16 +07:00
parent 6c31113bca
commit 7aac8cdcef
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export const ProjectSearchBar = ({ onChange }: ProjectSearchBarProps) => {
},
});
const debouncedInputValue = useDebounce<string>(inputValue, 500);
const debouncedInputValue = useDebounce<string>(inputValue, 300);
const fetchProjects = useCallback(
async (inputValue: string) => {

View File

@ -44,7 +44,7 @@ export const ProjectSearchBarDialog = ({
},
});
const debouncedInputValue = useDebounce<string>(inputValue, 500);
const debouncedInputValue = useDebounce<string>(inputValue, 300);
const fetchProjects = useCallback(
async (inputValue: string) => {