Subscribe on changes!

Multiple Suspense instance are not isolated during OnErrorCaptured

avatar
Dec 11th 2020

Version

3.0.4

Reproduction link

https://github.com/proximax-foundry/xpx-storage-explorer/blob/dev/src/views/MainOverview.vue

Steps to reproduce

  1. Use Suspense template here
  2. Wrap multiple async components as shown here and App.vue
  3. Throw errors within async components.

What is expected?

The error should be captured and isolated within the Suspense scope of the component in (MainOverview.vue)

What is actually happening?

The error seems to be captured at the higher level (App.vue) which instead of the scope of the component in (MainOverview.vue)


I believe the feature request proposed here might help resolve this issue.

avatar
Dec 11th 2020

Read https://new-issue.vuejs.org/?repo=vuejs/vue#why-repro

I guess that as you said, we can track this at #1347