Skip to content

Commit 9419591

Browse files
committed
Fix #501 Update docs to make it clear that only standalone location hooks don't support nesting etc.
1 parent 751306d commit 9419591

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
@@ -145,7 +145,7 @@ links, default routes, server-side rendering etc.
145145

146146
**Location Hooks**
147147

148-
These can be used separately from the main module and have an interface similar to `useState`. These hooks don't support nesting, base path, route matching.
148+
These can be used separately from the main module and have an interface similar to `useState`. These hooks are standalone and don't include built-in support for nesting, base path, or route matching. However, when passed to `<Router>`, they work seamlessly with all Router features including nesting and base paths.
149149

150150
- **[`import { useBrowserLocation } from "wouter/use-browser-location"`](https://github.com/molefrog/wouter/blob/v3/packages/wouter/src/use-browser-location.js)**
151151
allows to manipulate current location in the browser's address bar, a tiny wrapper around the History API.

0 commit comments

Comments
 (0)