mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-08-01 10:51:29 -04:00
Increase debounce
This commit is contained in:
@@ -110,11 +110,10 @@ export const useCitySearch = () => {
|
||||
if (query.length < 2) {
|
||||
setCities([])
|
||||
return
|
||||
}
|
||||
if (query.length >= 2) {
|
||||
} else {
|
||||
fetchData()
|
||||
}
|
||||
}, 200)
|
||||
}, 1000)
|
||||
|
||||
return () => {
|
||||
clearTimeout(debounce)
|
||||
|
||||
Reference in New Issue
Block a user