Decrease search unbounce to 500ms

This commit is contained in:
AnimeDL 2024-04-14 16:07:25 -07:00
parent 3957977a2c
commit 4b8e683bba

View file

@ -40,7 +40,7 @@ const SearchBox: React.FC = () => {
s.value = s.value.slice(0, 10);
setSearchResult(s);
}
}, 1000);
}, 500);
return () => clearTimeout(timeOutId);
}, [search]);