Expose an Error Handler
IPWright83 opened this issue · 0 comments
IPWright83 commented
It would be really great if you could expose some event handlers. Specifically I'm interested in an Error Handler (but I can see how LocationChangedHandler might also be useful).
The reason I want to be able to handle errors, is unfortunately sometimes navigating to the URL may trigger an issue and need some sort of corrective behaviour. While this could be wrapped in an ErrorBoundary/component it doesn't feel ideal. Here's an example on how others have dealt with the issue we're hitting with vue-router
https://stackoverflow.com/a/74861436/21061