🚀 perf: change the debounce to 300 ms

This commit is contained in:
Wahyu Kurniawan committed 2024-03-06 15:11:16 +07:00
1 parent 6c31113bca
commit 7aac8cdcef
2 files changed
+2 -2

No files matched your search

@@ -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) => {
@@ -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) => {