Subscribe on changes!

Unhandled error during execution of scheduler flush

avatar
Jan 18th 2021

Version

3.0.5

Reproduction link

https://jsfiddle.net/hm3f19rx/3/

Steps to reproduce

  1. Set an empty array as a data() return
  2. Add a web request in the mounted() hook (I used Axios)
  3. Set the empty array to the result of the web request
  4. Use v-for to loop over that array and render it

What is expected?

The array is rendered as normal.

What is actually happening?

Nothing gets rendered - my entire application breaks. Vue warn says:

Unhandled error during execution of scheduler flush. This is likely a Vue internals bug.

I first ran into this issue on my @ionic/vue project and assumed it was an issue with Ionic itself. However, even without Ionic components this issue is still prominent. Any fixes for this are very much appreciated, since this has fully halted the development of my Vue application.

avatar
Jan 18th 2021

the data you ask for doesn't have an author field (at least not all of them do), so project.author.username throws an error:

image