Subscribe on changes!

Error in mounted hook broke app.

avatar
May 11th 2022

Version

3.2.33

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. Run project in dev mode. (Not in the SFC playground)
  2. Click Toogle View mutiple times.

What is expected?

Pages cycle through Page A, Page B and I fail on mount.

What is actually happening?

Stop at I fail on mount.


From vuejs/router#1395

avatar
May 11th 2022

If you want to make your app explicitly more forgiving in such situations, use Vue's error handling:

https://vuejs.org/api/application.html#app-config-errorhandler https://vuejs.org/api/composition-api-lifecycle.html#onerrorcaptured