Open
Description
What problem does this feature solve?
being able to return a value in a navigaiton guard:
router.beforeEach(to => {
if (!user)
return { name: 'login', query: { redirectTo: to.fullPath } }
})
### What does the proposed API look like?
Like v4. X
<!-- generated by vue-issues. DO NOT REMOVE -->