Skip to content

add a new onNavigationAborted hook #1905

Closed
@huang-julien

Description

@huang-julien

What problem is this solving

hi 👋

Currently there's no hook when a navigation is being aborted by a false within a beforeEach.

This feature would enhance nuxt/nuxt#21751 by avoiding to create a new nuxt hook which doesn't really make sense and should be a vue-router feature.

Proposed solution

The proposed API would be router.onNavigationAborted((to, from) => void)

Describe alternatives you've considered

No response

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