Bump debounce rate in search input (#1831)

This commit is contained in:
Wojciech Mista 2022-02-07 12:43:41 +01:00 committed by GitHub
parent 5f771568c1
commit 9836f6b206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ const SearchInput: React.FC<SearchInputProps> = props => {
React.useEffect(() => setSearch(initialSearch), [initialSearch]);
return (
<Debounce debounceFn={onSearchChange}>
<Debounce debounceFn={onSearchChange} time={500}>
{debounceSearchChange => {
const handleSearchChange = (event: React.ChangeEvent<any>) => {
const value = event.target.value;