Skip to content
New issue

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

Allow navigate component to go back or go forward #52

Open
Archmonger opened this issue Jan 12, 2025 · 0 comments
Open

Allow navigate component to go back or go forward #52

Archmonger opened this issue Jan 12, 2025 · 0 comments

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Jan 12, 2025

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 the navigate component to accept an integer navigate(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant