Skip to content

Allow navigate component to go back or go forward #52

Open
@Archmonger

Description

@Archmonger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions