errorCaptured reverse behavior
Version
3.0.0
Reproduction link
https://codesandbox.io/s/errorcaptured-reverse-behavior-soji9?file=/src/App.vue
Steps to reproduce
- throw error from Child component
- catch error in Parent component via
errorCaptured
hook - return false as per documentation to prevent error propagation
What is expected?
Error is not propagated
What is actually happening?
Error propagated to window
Interesting. Changing the return value from false
to true
makes the thing work.
And this is exactly the opposite of what documentation says (and how Vue 2 works).