MCPcopy Create free account
hub / github.com/VienLi/CcView / handlerChange

Function handlerChange

src/components/Query/QueryFactory.tsx:21–30  ·  view source on GitHub ↗
(newValue: any)

Source from the content-addressed store, hash-verified

19 const { key } = mapping;
20 const value = get(query, key, undefined);
21 const handlerChange = (newValue: any) => {
22 if (key) {
23 const newQuery = {
24 ...query,
25 [key]: newValue,
26 page: 0
27 };
28 setQuery?.(newQuery);
29 }
30 };
31 return (
32 <div key={`${type}-${index}`} className={`${className} shrink-0 mb-4`}>
33 <ItemComponent is={queryItem.type} {...{ ...properties, value, onChange: handlerChange, eventMap }} ></ItemComponent>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected