|
@@ -1,3 +1,4 @@
|
|
|
|
|
+import { pauseTracking, resetTracking } from '@vue/reactivity'
|
|
|
import type { VNode } from './vnode'
|
|
import type { VNode } from './vnode'
|
|
|
import type { ComponentInternalInstance } from './component'
|
|
import type { ComponentInternalInstance } from './component'
|
|
|
import { popWarningContext, pushWarningContext, warn } from './warning'
|
|
import { popWarningContext, pushWarningContext, warn } from './warning'
|
|
@@ -127,12 +128,14 @@ export function handleError(
|
|
|
// app-level handling
|
|
// app-level handling
|
|
|
const appErrorHandler = instance.appContext.config.errorHandler
|
|
const appErrorHandler = instance.appContext.config.errorHandler
|
|
|
if (appErrorHandler) {
|
|
if (appErrorHandler) {
|
|
|
|
|
+ pauseTracking()
|
|
|
callWithErrorHandling(
|
|
callWithErrorHandling(
|
|
|
appErrorHandler,
|
|
appErrorHandler,
|
|
|
null,
|
|
null,
|
|
|
ErrorCodes.APP_ERROR_HANDLER,
|
|
ErrorCodes.APP_ERROR_HANDLER,
|
|
|
[err, exposedInstance, errorInfo],
|
|
[err, exposedInstance, errorInfo],
|
|
|
)
|
|
)
|
|
|
|
|
+ resetTracking()
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|