Skip to content

Commit

Permalink
refactor: debounce delay time 300 to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 19, 2024
1 parent 7dc047a commit 116deca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-auto-complete.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface AutoCompleteResult {
id: number;
}

export const useAutoComplete = ({ content, delay = 300 }: UseAutoCompleteProps) => {
export const useAutoComplete = ({ content, delay = 1000 }: UseAutoCompleteProps) => {
const [results, setResults] = useState<AutoCompleteResult[]>([]);
const [error, setError] = useState<string | null>(null);
const { type, category } = useTypeStore();
Expand Down

0 comments on commit 116deca

Please sign in to comment.