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 tried to use the the onErrorCaptured hook just as I used it in 2.x: code in CodeSandbox , outputs are in console.
The result is not in line with my expectation. Actually, the error was not captured, and because I usedVue.config.warnHandler, I found that the error was treated as a warn, onErrorCaptured was not called. But if I used it as 2.x, using errorCaptured hook, it works properly. Did I get something wrong? Thanks.
And sorry for my poor English.
The text was updated successfully, but these errors were encountered:
I tried to use the the
onErrorCaptured
hook just as I used it in 2.x: code in CodeSandbox , outputs are in console.The result is not in line with my expectation. Actually, the error was not captured, and because I used
Vue.config.warnHandler
, I found that the error was treated as a warn,onErrorCaptured
was not called. But if I used it as 2.x, usingerrorCaptured
hook, it works properly. Did I get something wrong? Thanks.And sorry for my poor English.
The text was updated successfully, but these errors were encountered: