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

bug: vue router does not fire guards when written in component #23820

Closed
4 of 6 tasks
liamdebeasi opened this issue Aug 25, 2021 · 1 comment · Fixed by #23821
Closed
4 of 6 tasks

bug: vue router does not fire guards when written in component #23820

liamdebeasi opened this issue Aug 25, 2021 · 1 comment · Fixed by #23821
Labels
package: vue @ionic/vue package type: bug a confirmed bug report
Milestone

Comments

@liamdebeasi
Copy link
Contributor

Prequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

When writing guards in a Vue component, Vue Router does not fire them because Ionic Vue never registers the component with the router.

Expected Behavior

I would expect the guards to fire.

Steps to Reproduce

https://forum.ionicframework.com/t/beforerouteupdate-and-beforerouteleave-never-called/

Code Reproduction URL

No response

Ionic Info

No response

Additional Information

No response

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 25, 2021

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: vue @ionic/vue package type: bug a confirmed bug report
Projects
None yet
1 participant