Skip to content

Commit 854f4a4

Browse files
Elanistimdorr
andauthored
Add hint about "replace" in "useNavigate" documentation (#8991)
Co-authored-by: Tim Dorr <[email protected]>
1 parent f9c4a0e commit 854f4a4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- christopherchudzicki
1616
- cvbuelow
1717
- edwin177
18+
- elanis
1819
- elylucas
1920
- emzoumpo
2021
- gijo-varghese

docs/hooks/use-navigate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface NavigateFunction {
2121

2222
</details>
2323

24-
The `useNavigate` hook returns a function that lets you navigate programmatically, for example after a form is submitted.
24+
The `useNavigate` hook returns a function that lets you navigate programmatically, for example after a form is submitted. If using `replace: true`, the navigation will replace the current entry in the history stack instead of adding a new one.
2525

2626
```tsx
2727
import { useNavigate } from "react-router-dom";

0 commit comments

Comments
 (0)