MCPcopy
hub / github.com/molefrog/wouter / useSearch

Function useSearch

packages/wouter/src/index.js:84–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82export const useLocation = () => useLocationFromRouter(useRouter());
83
84export const useSearch = () => {
85 const router = useRouter();
86 return sanitizeSearch(router.searchHook(router));
87};
88
89export const matchRoute = (parser, route, path, loose) => {
90 // if the input is a regexp, skip parsing

Callers 6

AppFunction · 0.90
PrintSearchFunction · 0.90
useSearchParamsFunction · 0.90

Calls 2

sanitizeSearchFunction · 0.90
useRouterFunction · 0.85

Tested by 2

AppFunction · 0.72
PrintSearchFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…