mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(nuxt): catch error in NuxtErrorBoundary
with ssr: false
(#24896)
This commit is contained in:
parent
c28ef02a17
commit
8ba118facb
@ -12,7 +12,7 @@ export default defineComponent({
|
||||
const nuxtApp = useNuxtApp()
|
||||
|
||||
onErrorCaptured((err, target, info) => {
|
||||
if (import.meta.client && !nuxtApp.isHydrating) {
|
||||
if (import.meta.client && (!nuxtApp.isHydrating || !nuxtApp.payload.serverRendered)) {
|
||||
emit('error', err)
|
||||
nuxtApp.hooks.callHook('vue:error', err, target, info)
|
||||
error.value = err
|
||||
|
Loading…
Reference in New Issue
Block a user