🚀 perf: change the debounce to 300 ms
This commit is contained in:
parent
6c31113bca
commit
7aac8cdcef
@ -42,7 +42,7 @@ export const ProjectSearchBar = ({ onChange }: ProjectSearchBarProps) => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const debouncedInputValue = useDebounce<string>(inputValue, 500);
|
const debouncedInputValue = useDebounce<string>(inputValue, 300);
|
||||||
|
|
||||||
const fetchProjects = useCallback(
|
const fetchProjects = useCallback(
|
||||||
async (inputValue: string) => {
|
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(
|
const fetchProjects = useCallback(
|
||||||
async (inputValue: string) => {
|
async (inputValue: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user