Unmounting Vue Root Instance fails
Version
3.2.0-beta.7
Reproduction link
https://jsfiddle.net/vqkjf6s0/1/
Steps to reproduce
Mount the router (or any other plugin) and right after .mount()
at the root due instance umount the whole app.
What is expected?
unmount of the app
What is actually happening?
no unmount of the app
I would love to see that the .unmount()
would like force unmount the app, or I could provide it with an additional force argument.
Please refer to https://github.com/vuejs/vue-router-next/issues/1056
This error is specific to the router, as it initialized asychronously, which leads to this error when unmounting synchronously.
There's no plugin lifecycle in Vue itself that could be responsible.
I would love to see that the .unmount() would like force unmount the app
the router monkey-patches app.unmount
, so there's little we can do here in core. This should be handled further in the linked router issue, imho.