Adding a property to a reactive object within a v-for
loop cause error: Maximum recursive updates exceeded in component
in the development environment
#11807
Labels
Vue version
3.5.0
Link to minimal reproduction
https://play.vuejs.org/#eNp9kk1PwzAMhv+KlQutVDrE16G0Q4A4gMSHgBtBqGu9EWiTKknLUNX/jtMpY0jTDpUsv4/d1457dtE0cdciS1hqCi0aCwZt20y5FHWjtIUeNM4jUPJOtdJiCQPMtaphj6r2zrjkslDSWFCNFRRA5vjg9S3kcl0TBGE27bkET8VdXrVI7IXW+U/sGgY9VCgX9iOBw1MYIghCyKYQ9ENIrQb60snKIXlLLdZNlVukGCAtRQfd/lzpjLNAkBaBCEFI/zvOIPnCH1IFZ2MJQN+DI+Mczn2Q+CADAcPwn5t5bua52Vau8FzhuWIrV3qu9Fy5waUTmskNOtmYlEXMGtr2XCziT6MkPdq4VM4KVTeiQv3g501gVJyWV5X6vh1zVrcY+XzxgcXXlvynWbocZ48aDeoOOVtrNtcLtCv5+vkelxSvxVqVbUX0DvEJjapa53GFXbayJNsb3Oj2Zjw9IRcv5nppURo/lDPqyGHkOaMbvNox+p/do/h4rKNLoi2+d6hdT1rgUXwSH7DhF/tZ+sE=
Steps to reproduce
The error occurs immediately.
P.S.: This bug can be triggered if the total number of updates to a reactive object within a
v-for
exceeds 100.The following code patterns will all trigger the error.What is expected?
This issue does not occur in version 3.4.38. The goal is to prevent the error from occurring again.
What is actually happening?
It’s not confirmed, but I suspect there’s an error in the
flushJobs
function ofruntime-core
related to the calculation ofcount
.System Info
No response
Any additional comments?
In my local development environment, this error causes certain components that work in 3.4.38 (such as those using options in a select) to become unusable, leading to rendering issues.
The text was updated successfully, but these errors were encountered: