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

Function onReset

apps/web/ui/Typesense/SearchBox.tsx:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 function onReset() {
58 setQuery('');
59
60 if (!searchAsYouType) {
61 refine('');
62 }
63 }
64
65 function onChange(event: React.ChangeEvent<HTMLInputElement>) {
66 setQuery(event.currentTarget.value);

Callers 1

handleResetFunction · 0.85

Calls 1

setQueryFunction · 0.85

Tested by

no test coverage detected