serach debouncing, hiding result categories

This commit is contained in:
austinried
2021-07-26 13:44:55 +09:00
parent 3615ec9ab6
commit c12ff2c08c
8 changed files with 119 additions and 42 deletions

View File

@@ -114,7 +114,7 @@ export const useUpdateSearchResults = () => {
}
return async (query: string) => {
if (updating) {
if (updating || query.length < 2) {
return
}
setUpdating(true)