Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48977

beforeRouteUpdate and beforeRouteLeave never called

$
0
0

“beforeRouteUpdate” and “beforeRouteLeave” in-component guards are never being called.

I tried using them in my route component and in my App.vue.
Nothing…

“beforeRouteEnter” works fine.

I navigated to other routes both by pressing the back button and by using “router.push” and “<router-link>”.
None of those called the guards.

My end goal is to use the mentioned guards to navigate to a previous step of a multi-step form when pressing the back button.

I am completely lost, spent hours on this. My app is pretty big so tell me which part of the code you would need to see.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>