Skip to content

change route in component's beforeRouteLeave caused dead loop #2948

@fxjeep

Description

@fxjeep

The function I need is updating the params in "to" route in a component's beforeRouteLeave hook.

Changing params properties in "to" argument does not work.
adding new route in next() callback will call beforeRouteLeave again.

According to the document, next() callback in beforeRouteLeave should only take a "false" argument or no argument. Do you know how to implement my requirement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions