Skip to content
New issue

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

feat: call global vue errorHandler in fetch and asyncData #3652

Merged
merged 1 commit into from
Aug 8, 2018

Conversation

clarkdo
Copy link
Member

@clarkdo clarkdo commented Aug 8, 2018

resolve #3335

@codecov-io
Copy link

Codecov Report

Merging #3652 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev    #3652   +/-   ##
=======================================
  Coverage   99.19%   99.19%           
=======================================
  Files          18       18           
  Lines        1123     1123           
  Branches      302      302           
=======================================
  Hits         1114     1114           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 823c298...0282c77. Read the comment docs.

<% if (loading) { %>
if (this.$loading.increase) {
this.$loading.increase(loadingIncrease)
let p = Component.options.fetch(app.context)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here only added a catch, others are indentation.

}
<% } %>
})
.then((asyncDataResult) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here only added a catch, others are indentation.

@clarkdo clarkdo merged commit 6aaf839 into nuxt:dev Aug 8, 2018
@Atinux
Copy link
Member

Atinux commented Aug 8, 2018

❤️

@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
@clarkdo clarkdo deleted the fetch-error-handler branch April 2, 2019 13:08
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Catch error in fetch/asyncData methods for error reporting with Vue.config.errorHandler dont work
4 participants