Open matteobortolazzo opened 6 years ago
I've also faced with this problem, but I've created a solution! Take a look on this https://github.com/wanoo21/stencil-route-listener, could be useful also for you till there will be an official one.
Wow, thanks you!!!
Thanks to @wanoo21 for his solution. If you want, you can use the native way to watch the location
prop. Here, I wrote a blog post about it: https://puruvj.dev/blog/stencil-router-events
Stencil version:
I'm submitting a:
[ ] bug report [X] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Expected behavior: stencil-router should have an event that fires when the page change.
Steps to reproduce:
Related code:
Other information: