Skip to content

afterResolve global navigation hook #2079

Closed
@cironunes

Description

@cironunes

What problem does this feature solve?

As opposed to beforeResolve, afterResolve would wait until the navigation is done and trigger the registered callbacks.

The main reason for that is to be able to track events in the right moment, with the proper url in place, globally.

What does the proposed API look like?

routerInstance.afterResolve(cb);
function cb(from, to, next) {...}

I'd love to submit a PR if that's something you'd like to have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed on 4.xThis issue has been already fixed on the v4 but exists in v3has PRimprovement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions