Skip to content

Commit

Permalink
Incerase search debounce (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera authored Mar 6, 2023
1 parent 4ca1e44 commit f1a5161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/customSpotlightProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1a5161

Please sign in to comment.