Skip to content

Commit 1c20deb

Browse files
authored
docs: Fix description of useLocation().url
1 parent 5309eb8 commit 1c20deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ A hook to work with the `LocationProvider` to access location context.
179179

180180
Returns an object with the following properties:
181181

182-
- `url: string` - _Redundant_ - The current path
182+
- `url: string` - The current path & search params
183183
- `path: string` - The current path
184184
- `query: Record<string, string>` - The current query string parameters (`/profile?name=John` -> `{ name: 'John' }`)
185185
- `route: (url: string, replace?: boolean) => void` - A function to programmatically navigate to a new route. The `replace` param can optionally be used to overwrite history, navigating them away without keeping the current location in the history stack.

0 commit comments

Comments
 (0)