From 3323bd8a9d489c11f6d437e7c59f06e139c16cc4 Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Thu, 11 Nov 2021 10:41:58 +0100 Subject: [PATCH] decrease debounce time Signed-off-by: Emma Indal --- plugins/search/src/components/SearchModal/SearchModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/search/src/components/SearchModal/SearchModal.tsx b/plugins/search/src/components/SearchModal/SearchModal.tsx index feabbc55af..37cb93b6d3 100644 --- a/plugins/search/src/components/SearchModal/SearchModal.tsx +++ b/plugins/search/src/components/SearchModal/SearchModal.tsx @@ -68,7 +68,7 @@ export const Modal = ({ open = true, toggleModal }: SearchModalProps) => { setValue(prevValue => (prevValue !== term ? term : prevValue)); }, [term]); - useDebounce(() => setTerm(value), 1000, [value]); + useDebounce(() => setTerm(value), 500, [value]); const handleQuery = (newValue: string) => { setValue(newValue);