We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using a global error handler for process errors during component render function and watchers.
But it does not catch the exception thrown in the list method below:
export default { async created() { await this.list(); }, async beforeRouteUpdate(to, from, next) { next(); await this.list(); }, methods: { async list() { return axios.get('An invalid url'); }, }, };
No need to change API
The text was updated successfully, but these errors were encountered:
That is normal, they are different kind of errors so Vue Router doesn't relay them to Vue by default. Regarding async errors: vuejs/vue-router#2833
Sorry, something went wrong.
If I want to refresh the page data when the route is updated, the error in created and the error in beforeRouteUpdate are the same type.
created
beforeRouteUpdate
And if I want to catch all these exceptions in Vue.config.errorHandler, what is your suggestion?
Vue.config.errorHandler
No branches or pull requests
What problem does this feature solve?
I'm using a global error handler for process errors during component render function and watchers.
But it does not catch the exception thrown in the list method below:
What does the proposed API look like?
No need to change API
The text was updated successfully, but these errors were encountered: