Skip to content

Instantly share code, notes, and snippets.

@arunredhu
Created June 16, 2019 18:16
Show Gist options
  • Save arunredhu/e8a1f334d471e11be5f7bf236a0feba8 to your computer and use it in GitHub Desktop.
Save arunredhu/e8a1f334d471e11be5f7bf236a0feba8 to your computer and use it in GitHub Desktop.
export default {
name: "app-user-list",
created() {
this.$store.dispatch(actionsTypes.FETCH_USER_DATA);
},
errorCaptured(err, vm, info) {
// err: error trace
// vm: component in which error occured
// info: Vue specific error information such as lifecycle hooks, events etc.
// TODO: Perform any custom logic or log to server
// return false to stop the propagation of errors further to parent or global error handler
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment