The computed
will continuously recompute if it doesn’t track any reactive data.
#12337
Labels
computed
will continuously recompute if it doesn’t track any reactive data.
#12337
Vue version
3.5.12
Link to minimal reproduction
❌ NOT WORK minimal reproduction - 3.5.12
✅ WORK minimal reproduction - 3.5.5
Steps to reproduce
g
in the<input>
element on the screen.run 1730889072865
(timestamp as of the current time) is logged.g
and re-enterg
.run 1730889075430
logged once more. However, since thiscomputed
doesn’t track any reactive data, it should not be updating here.What is expected?
2024-11-06.10.57.55.mov
When we roll back to version 3.5.5 and repeat the steps above, in step 4, checking the developer tools reveals that the
computed
does not recompute, this is the expected behavior.What is actually happening?
2024-11-06.10.57.28.mov
The computed property recalculates each time the condition is toggled.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: