Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,12 @@ jobs:
fetch-depth: 0

- name: 📝 Comment on related issues and pull requests
uses: remix-run/release-comment-action@v0.4.3
uses: remix-run/release-comment-action@v0.5.0
with:
DIRECTORY_TO_CHECK: "./packages"
PACKAGE_NAME: "react-router"
ISSUE_LABELS_TO_REMOVE: "awaiting release"
ISSUE_LABELS_TO_KEEP_OPEN: "🗺 Roadmap"

# HEADS UP! this "nightly" job will only ever run on the `main` branch due to
# it being a cron job, and the last commit on main will be what github shows
Expand Down
14 changes: 8 additions & 6 deletions docs/api/hooks/useNavigate.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,14 @@ navigate("/some/route?search=param");
All properties are optional.

```tsx
navigate({
pathname: "/some/route",
search: "?search=param",
hash: "#hash",
state: { some: "state" },
});
navigate(
{
pathname: "/some/route",
search: "?search=param",
hash: "#hash",
},
{ state: { some: "state" } }
);
```

If you use `state`, that will be available on the [`Location`](https://api.reactrouter.com/v7/interfaces/react_router.Location.html) object on
Expand Down