We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useMatch
1 parent 729cd46 commit fd4383dCopy full SHA for fd4383d
contributors.yml
@@ -135,3 +135,4 @@
135
- xavier-lc
136
- xcsnowcity
137
- yuleicul
138
+- m-shojaei
packages/react-router/lib/hooks.tsx
@@ -116,7 +116,7 @@ export function useNavigationType(): NavigationType {
116
}
117
118
/**
119
- * Returns true if the URL for the given "to" value matches the current URL.
+ * Returns a PathMatch object if the given pattern matches the current URL.
120
* This is useful for components that need to know "active" state, e.g.
121
* <NavLink>.
122
*
0 commit comments