Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
donghao-doc opened this issue Apr 27, 2024 · 4 comments

Comments

@donghao-doc
Copy link

donghao-doc commented Apr 27, 2024

Vue version

3.4.21

Link to minimal reproduction

https://github.com/dongdong12138/vue3-bug-report

Steps to reproduce

  1. Please download and run the provided vue3-bug-report repository first.
  2. Open your browser’s console, wait a few seconds, and you will see some warnings and errors.

What is expected?

I expect that after the loading data changes, the page’s loading status can be updated.

What is actually happening?

When I modify the value of loading in the finally block, it indeed changes, but the page remains in the loading state. In my project, loading is an overlay effect, which causes the overlay to not disappear even though the value of loading has been changed to false.

System Info

No response

Any additional comments?

BTW, In my demo, when I comment out v-show, there are no more warnings or errors in the console.

@jacekkarczmarczyk
Copy link
Contributor

Value returned by reqProductIndex doesn't have list property, so you're setting productList to undefined, undefined doesn't have length property

@donghao-doc
Copy link
Author

donghao-doc commented Apr 27, 2024

Value returned by reqProductIndex doesn't have list property, so you're setting productList to undefined, undefined doesn't have length property

I'm aware of this, but I think that since the loading has been updated, the page’s loading status should also be updated accordingly. As for the error about the doesn't have length property, it can be prompted separately in the console.

Or am I understanding that you mean, since Vue has already thrown an error, it will not update the page anymore?

@bsuooo
Copy link

bsuooo commented Apr 30, 2024

Value returned by reqProductIndex doesn't have list property, so you're setting productList to undefined, undefined doesn't have length property

I'm aware of this, but I think that since the loading has been updated, the page’s loading status should also be updated accordingly. As for the error about the doesn't have length property, it can be prompted separately in the console.

Or am I understanding that you mean, since Vue has already thrown an error, it will not update the page anymore?

Since the current component has thrown an error, it will no longer update this component. Other components on the page will update normally

@edison1105
Copy link
Member

As @bsuooo said.

@edison1105 edison1105 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants