Skip to content

Commit

Permalink
chore(react-router): fix useMatch's description (#9479)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-shojaei authored Nov 21, 2022
1 parent 729cd46 commit fd4383d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,4 @@
- xavier-lc
- xcsnowcity
- yuleicul
- m-shojaei
2 changes: 1 addition & 1 deletion packages/react-router/lib/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function useNavigationType(): NavigationType {
}

/**
* 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.
* This is useful for components that need to know "active" state, e.g.
* <NavLink>.
*
Expand Down

0 comments on commit fd4383d

Please sign in to comment.