fix debouncer issue
This commit is contained in:
parent
985b2912d1
commit
883bea8baa
1 changed files with 6 additions and 3 deletions
|
@ -96,9 +96,12 @@ export default function SearchInput(props: Iprops) {
|
|||
}
|
||||
};
|
||||
|
||||
const getOptions = pDebounce(
|
||||
getAutoCompleteSuggestions(props.files, props.collections),
|
||||
250
|
||||
const getOptions = useCallback(
|
||||
pDebounce(
|
||||
getAutoCompleteSuggestions(props.files, props.collections),
|
||||
250
|
||||
),
|
||||
[props.files, props.collections]
|
||||
);
|
||||
|
||||
const blur = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue