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

Function handleChange

src/components/LocationAutocomplete.tsx:45–50  ·  view source on GitHub ↗
(val: string)

Source from the content-addressed store, hash-verified

43
44 const handleChange = (val: string) => {
45 setQuery(val);
46 onChange(val);
47 if (debounceRef.current) clearTimeout(debounceRef.current);
48 debounceRef.current = setTimeout(() => geocode(val), 300);
49 };
50
51 return (
52 <div className="relative" ref={containerRef}>
53 <input

Callers 1

LocationAutocompleteFunction · 0.70

Calls 2

onChangeFunction · 0.85
geocodeFunction · 0.70

Tested by

no test coverage detected