MCPcopy Create free account
hub / github.com/dailydotdev/apps / onClearQuery

Function onClearQuery

packages/webapp/components/RouterPostsSearch.tsx:62–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 };
61
62 const onClearQuery = () => {
63 return router.replace({
64 pathname: router?.pathname ? router?.pathname : '/search',
65 });
66 };
67
68 if (isPhone) {
69 const { placeholder } = props;

Callers 2

onValueChangedFunction · 0.85
RouterPostsSearchFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected