Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
docs(use-navigate.md): restore hint for replace
Browse files Browse the repository at this point in the history
restored the line since despite remix-run#8991 got merged into main, 854f4a4 was nowhere to be seen in commit history.

Co-authored-by: Axel <Elanis@users.noreply.github.com>
  • Loading branch information
scarf005 and Elanis committed Apr 6, 2023
1 parent b06af69 commit 0d756cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/hooks/use-navigate.md
Expand Up @@ -47,4 +47,6 @@ The `navigate` function has two signatures:
- Either pass a `To` value (same type as `<Link to>`) with an optional second `{ replace, state }` arg or
- Pass the delta you want to go in the history stack. For example, `navigate(-1)` is equivalent to hitting the back button.

If using `replace: true`, the navigation will replace the current entry in the history stack instead of adding a new one.

[redirect]: ../fetch/redirect

0 comments on commit 0d756cc

Please sign in to comment.