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

Function useRouter

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

Source from the content-addressed store, hash-verified

48
49// gets the closest parent router from the context
50export const useRouter = () => useContext(RouterCtx);
51
52/**
53 * Parameters context. Used by `useParams()` to get the

Callers 15

parser.test.tsxFile · 0.90
router.test-d.tsxFile · 0.90
router.test.tsxFile · 0.90
RouterGetterFunction · 0.90
WithStatusCodeFunction · 0.90
useLocationFunction · 0.85
useSearchFunction · 0.85
useRouteFunction · 0.85
RouterFunction · 0.85
RouteFunction · 0.85

Calls

no outgoing calls

Tested by 1

RouterGetterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…