Skip to content

Commit fd4383d

Browse files
authored
chore(react-router): fix useMatch's description (#9479)
1 parent 729cd46 commit fd4383d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@
135135
- xavier-lc
136136
- xcsnowcity
137137
- yuleicul
138+
- m-shojaei

packages/react-router/lib/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export function useNavigationType(): NavigationType {
116116
}
117117

118118
/**
119-
* Returns true if the URL for the given "to" value matches the current URL.
119+
* Returns a PathMatch object if the given pattern matches the current URL.
120120
* This is useful for components that need to know "active" state, e.g.
121121
* <NavLink>.
122122
*

0 commit comments

Comments
 (0)