You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still trying to wrap my head around the nearly insurmountably confusing usage of fetch() and its impact on error.vue
My current understanding is that error.vue is always rendered as either a Component or a Page, but never a Layout.
Already confusing.
Old fetch and throw new Error act like they're supposed to:
If I call the 'old' (< 2.12) version of fetch, with a context argument, then call context.error('whatever'), OR if I simply throw new Error('whatever'), error.vue is rendered as expected - a Page, whose layout property is properly respected.
New fetch does what??
If I call the new (>= 2.12) version of fetch() with no arguments, then call this.$nuxt.error('whatever'), error.vue appears to be forcibly rendered INLINE as a Component that completely ignores its own layout property and renders inside the current layout instead.
I assume this is a bug in this.$nuxt.error()?
Surely, this can't be the expected behavior, i.e. completely changing the way error.vue is rendered based solely on the this context that new fetch provides?
The text was updated successfully, but these errors were encountered:
Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of nuxt-edge
Comment the steps to reproduce it
Issues that are labeled as pending will not be automatically marked as stale.
I'm still trying to wrap my head around the nearly insurmountably confusing usage of
fetch()
and its impact onerror.vue
My current understanding is that
error.vue
is always rendered as either aComponent
or aPage
, but never aLayout
.Already confusing.
Old
fetch
andthrow new Error
act like they're supposed to:If I call the 'old' (< 2.12) version of
fetch
, with acontext
argument, then callcontext.error('whatever')
, OR if I simplythrow new Error('whatever')
,error.vue
is rendered as expected - aPage
, whoselayout
property is properly respected.New
fetch
does what??If I call the new (>= 2.12) version of
fetch()
with no arguments, then callthis.$nuxt.error('whatever')
,error.vue
appears to be forcibly rendered INLINE as aComponent
that completely ignores its ownlayout
property and renders inside the current layout instead.I assume this is a bug in
this.$nuxt.error()
?Surely, this can't be the expected behavior, i.e. completely changing the way
error.vue
is rendered based solely on thethis
context that newfetch
provides?The text was updated successfully, but these errors were encountered: