Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans on adding navigation guards? #12

Open
nolde opened this issue Mar 15, 2022 · 3 comments
Open

Any plans on adding navigation guards? #12

nolde opened this issue Mar 15, 2022 · 3 comments

Comments

@nolde
Copy link

nolde commented Mar 15, 2022

https://router.vuejs.org/guide/advanced/composition-api.html#navigation-guards

It would be really useful to have navigation guards (onBeforeRouteLeave, onBeforeRouteUpdate) available, as a replacement for vue-router compositions while using Vue 2.

Any plans on adding those?

@nolde nolde changed the title Any plans on adding navigation guards on a Vue 2 version? Any plans on adding navigation guards? Mar 15, 2022
@davidmeirlevy
Copy link
Contributor

Hi!

It can be a great idea.
You mean for a component's hook only and not a global guard?

Would you like to contribute it?

@nolde
Copy link
Author

nolde commented Mar 16, 2022

@davidmeirlevy Hello mate!

Yeah, the component's hook only.

Well, if you have no plans of adding it yourselves, I might jump in, if you don't mind.

@davidmeirlevy
Copy link
Contributor

@nolde if you're able to do it, it would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants