Skip to content

Add onBeforeRouteEnter API to the list of composition API #1517

Closed
@ahnpnl

Description

@ahnpnl

What problem does this feature solve?

Current the documentation about composition API https://router.vuejs.org/guide/advanced/navigation-guards.html#using-the-composition-api doesn't mention about onBeforeRouteEnter. I see in Options API, there is beforeRouteEnter hence there should be one for composition API too.

What does the proposed API look like?

export function onBeforeRouteUpdate(to, from) {
      //....
}

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