Closed donghao-doc closed 3 days ago
Value returned by reqProductIndex
doesn't have list
property, so you're setting productList
to undefined
, undefined
doesn't have length
property
Value returned by
reqProductIndex
doesn't havelist
property, so you're settingproductList
toundefined
,undefined
doesn't havelength
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?
Value returned by
reqProductIndex
doesn't havelist
property, so you're settingproductList
toundefined
,undefined
doesn't havelength
propertyI'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 havelength
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
As @bsuooo said.
Vue version
3.4.21
Link to minimal reproduction
https://github.com/dongdong12138/vue3-bug-report
Steps to reproduce
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 thefinally
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 ofloading
has been changed tofalse
.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.