MCPcopy Index your code
hub / github.com/caesarHQ/textSQL / handleClick

Function handleClick

client/censusGPT/src/components/suggestion.js:39–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const [searchParams, setSearchParams] = useSearchParams();
38
39 const handleClick = () => {
40 acceptSuggestion(currentSuggestionId)
41 setSearchParams(new URLSearchParams({ s: props.suggestedQuery }))
42 setTitle(suggestedQuery)
43 setQuery(suggestedQuery)
44 fetchBackend(suggestedQuery, currentSuggestionId)
45 };
46
47 const clickableQuery = (
48 <div style={{ wordWrap: 'break-word' }}>

Callers

nothing calls this directly

Calls 2

acceptSuggestionFunction · 0.85
fetchBackendFunction · 0.85

Tested by

no test coverage detected