-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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