Skip to content

[go_router] .pushReplacement() and pushAndRemoveUntil() equivalent #107052

Closed as not planned
@ValentinVignal

Description

@ValentinVignal

Use case

With navigator 1.0, we can use 2 methods:

  • .pushReplacement()
  • pushAndRemoveUntil()

Those where very useful, especially when the user is going through a wizard. The wizard could walk the user through different screens and those screens could be removed at the end of the wizard so the user cannot go back to them.

I didn't see any equivalent in GoRouter. Or maybe I missed them?

Proposal

It would be useful to implement .pushReplacement() and pushAndRemoveUntil() equivalent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions