MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / handleStringChange

Function handleStringChange

client/src/pages/metadata-query/string-query.tsx:9–17  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

7 const [string, setString] = useState('');
8
9 const handleStringChange = (e) => {
10 const value = e.target.value;
11 setString(value);
12 const valid = validator(value);
13 if (valid) {
14 return handleQueryValid(queryName, valid);
15 }
16 handleQueryInvalid(queryName);
17 };
18
19 return (
20 <div className="mb-10">

Callers

nothing calls this directly

Calls 3

validatorFunction · 0.85
handleQueryValidFunction · 0.85
handleQueryInvalidFunction · 0.85

Tested by

no test coverage detected