Error in mounted hook broke app.
Version
3.2.33
Reproduction link
Steps to reproduce
- Run project in dev mode. (Not in the SFC playground)
- 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
that's kind of by design, so you don't miss such errors in dev.
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