-
Notifications
You must be signed in to change notification settings - Fork 6
Fix hydration issues and warnings on non-error pages. #14
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.x #14 +/- ##
=======================================
Coverage 96.00% 96.00%
=======================================
Files 1 1
Lines 25 25
Branches 8 8
=======================================
Hits 24 24
Misses 1 1 Continue to review full report at Codecov.
|
1ff9379 to
bf94abb
Compare
8b0816f to
471707b
Compare
… .statusCode property.
| /** | ||
| * Returns an object for rendering as Vue component. | ||
| */ | ||
| this.$currentPage.contentComponent = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one main reason for the warnings (it'S not able to serialize this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was unused anyway
| // Request made and server responded. If we get a proper Drupal error | ||
| // page, apply it and propagate the error code. | ||
| if (error.response.data && error.response.data.title && error.response.data.content) { | ||
| this.processPageResponse(error.response.data, error.response.status) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this takes over drupal error pages if possibles - nothing special todo then to make them apply.
if necessary statusCode property is there in case the frontend wants to differentiate. It won't trigger nuxt error handling and default nuxt error pages. So we can have two level of error handling:
- regular 403/404 pages, cms controlled
- nuxt errors, solely frontend controlled.
No description provided.