stencil-router
stencil-router copied to clipboard
Route change event
Stencil version:
@stencil/[email protected]
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:
// insert any relevant code here
Other information:
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