Skip to content

Unify next() for beforeRouteUpdate and beforeRouteEnter  #1676

Closed
@zatziky

Description

@zatziky

What problem does this feature solve?

Hi there,

it would make our code base simpler if we received vm in beforeRouteUpdate too even though this method already has access to this. Then if the same logic applies for beforeRouteUpdate and beforeRouteEnter it could be handled uniformly in one method only:

beforeRouteUpdate(to, from, next){
   handleRouteChange(to, from, next)
},

beforeRouteEnter(to, from, next){
   handleRouteChange(to, from, next)
}

Yes, sometimes you need to handle both the methods in a different way but if not this is a nice short cut. Is it possible to do it in Vue.js or not?

Kind regards,

Nobo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions