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 6c36c87 commit 2f9ffa5Copy full SHA for 2f9ffa5
docs/api/hooks/useNavigate.md
@@ -78,14 +78,12 @@ navigate("/some/route?search=param");
78
All properties are optional.
79
80
```tsx
81
-navigate(
82
- {
83
- pathname: "/some/route",
84
- search: "?search=param",
85
- hash: "#hash",
86
- },
87
- { state: { some: "state" } }
88
-);
+navigate({
+ pathname: "/some/route",
+ search: "?search=param",
+ hash: "#hash",
+ state: { some: "state" },
+});
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