Subscribe on changes!

errorCaptured reverse behavior

avatar
Sep 29th 2020

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

avatar
Sep 29th 2020

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).