MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / setQuery

Function setQuery

apps/web/ui/Typesense/SearchBox.tsx:49–55  ·  view source on GitHub ↗
(newQuery: string)

Source from the content-addressed store, hash-verified

47 const inputRef = useRef<HTMLInputElement>(null);
48
49 function setQuery(newQuery: string) {
50 setInputValue(newQuery);
51
52 if (searchAsYouType) {
53 refine(newQuery);
54 }
55 }
56
57 function onReset() {
58 setQuery('');

Callers 6

CommunitiesFunction · 0.85
onResetFunction · 0.85
onChangeFunction · 0.85
RecentTopicsFunction · 0.85
FindChannelModalFunction · 0.85
ShowUsersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected