From f1a5161acad6a9363b03535647404e0ec1dcd232 Mon Sep 17 00:00:00 2001 From: Petr Vecera Date: Mon, 6 Mar 2023 18:36:41 +0100 Subject: [PATCH] Incerase search debounce (#86) --- components/customSpotlightProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/customSpotlightProvider.tsx b/components/customSpotlightProvider.tsx index 74237bc6..8eb12a9e 100644 --- a/components/customSpotlightProvider.tsx +++ b/components/customSpotlightProvider.tsx @@ -13,7 +13,7 @@ const CustomSpotlightProvider = ({ children }: { children: ReactNode[] | null }) const [actions, setActions] = useState<[] | SpotlightAction[]>([]); const [fetchLoading, setFetchLoading] = useState(false); // debounce query (wait till user stopped actively entering stuff in the search field) - const [debouncedQuery, setDebouncedQuery] = useDebouncedState("", 200); + const [debouncedQuery, setDebouncedQuery] = useDebouncedState("", 500); /** * Request additional results for the spotlight search based on the user input and add to spotlight entries