MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / handleChange

Function handleChange

src/components/SearchBar.tsx:51–56  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

49
50 const handleChange = (value: string) => {
51 setQuery(value);
52 onSearch(value);
53 if (debounceRef.current) clearTimeout(debounceRef.current);
54 debounceRef.current = setTimeout(() => geocode(value), 300);
55 };
56
57 const handleSelect = (result: GeocodingResult) => {
58 setQuery(result.place_name);
59 setShowResults(false);

Callers 1

SearchBarFunction · 0.70

Calls 1

geocodeFunction · 0.70

Tested by

no test coverage detected