We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navigate
go back
go forward
The ReactRouter navigate component can use integers to "go back" or "go forward" a page
ref: https://api.reactrouter.com/v7/functions/react_router.useNavigate.html
Allow the to argument on the navigate component to accept an integer navigate(to=-1) which can go back or forward X many pages.
to
navigate(to=-1)
It will utilize the history.go API.
history.go
ref: https://developer.mozilla.org/en-US/docs/Web/API/History/go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Situation
The ReactRouter navigate component can use integers to "go back" or "go forward" a page
ref: https://api.reactrouter.com/v7/functions/react_router.useNavigate.html
Proposed Actions
Allow the
to
argument on thenavigate
component to accept an integernavigate(to=-1)
which can go back or forward X many pages.It will utilize the
history.go
API.ref: https://developer.mozilla.org/en-US/docs/Web/API/History/go
The text was updated successfully, but these errors were encountered: