Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/molefrog/wouter
/ useRoute
Function
useRoute
packages/wouter/src/index.js:137–138 ·
view source on GitHub ↗
(pattern)
Source
from the content-addressed store, hash-verified
135
};
136
137
export
const
useRoute = (pattern) =>
138
matchRoute(useRouter().parser, pattern, useLocation()[0]);
139
140
/*
141
* Part 2, Low Carb Router API: Router, Route, Link, Switch
Callers
6
parser.test.tsx
File · 0.90
use-route.test.tsx
File · 0.90
assertRoute
Function · 0.90
use-route.test-d.ts
File · 0.90
HookRoute
Function · 0.90
Component
Function · 0.85
Calls
3
matchRoute
Function · 0.85
useRouter
Function · 0.85
useLocation
Function · 0.85
Tested by
3
assertRoute
Function · 0.72
HookRoute
Function · 0.72
Component
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…