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.
1 parent c069b4e commit 89bb3f2Copy full SHA for 89bb3f2
docs/api/hooks/useNavigate.md
@@ -78,12 +78,14 @@ navigate("/some/route?search=param");
78
All properties are optional.
79
80
```tsx
81
-navigate({
82
- pathname: "/some/route",
83
- search: "?search=param",
84
- hash: "#hash",
85
- state: { some: "state" },
86
-});
+navigate(
+ {
+ pathname: "/some/route",
+ search: "?search=param",
+ hash: "#hash",
+ },
87
+ { state: { some: "state" } }
88
+);
89
```
90
91
If you use `state`, that will be available on the [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html) object on
0 commit comments