Decrease search unbounce to 500ms
This commit is contained in:
parent
3957977a2c
commit
4b8e683bba
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ const SearchBox: React.FC = () => {
|
|||
s.value = s.value.slice(0, 10);
|
||||
setSearchResult(s);
|
||||
}
|
||||
}, 1000);
|
||||
}, 500);
|
||||
return () => clearTimeout(timeOutId);
|
||||
}, [search]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue