Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
50
export
const
useRouter = () => useContext(RouterCtx);
51
52
/**
53
* Parameters context. Used by `useParams()` to get the
Callers
15
parser.test.tsx
File · 0.90
match-route.test-d.ts
File · 0.90
router.test-d.tsx
File · 0.90
nested-route.test.tsx
File · 0.90
router.test.tsx
File · 0.90
RouterGetter
Function · 0.90
WithStatusCode
Function · 0.90
useLocation
Function · 0.85
useSearch
Function · 0.85
useRoute
Function · 0.85
Router
Function · 0.85
Route
Function · 0.85
Calls
no outgoing calls
Tested by
1
RouterGetter
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…