Subscribe on changes!

`v-for` over `reactive([])` regression

avatar
Mar 28th 2023

Vue version

Latest main branch The latest release, 3.3.0-alpha.5, doesn't have this problem I believe this was introduced by #5752.

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kM9OwzAMxl/FymWdtDbiWnUITjwE4dB1bpexJpGTlEPVd8dpNrSBxM1/Pv9sf7N4da6aIopaNL4j7QJ4DNE9K6NHZynADIRtF/SEsEBPdoQN6zfKKNNZ41kf0HnY/8iK949t6vbRcG4NDLbYwqwMZGnloj8VT6xZlGlk3sr7OAk4uksbkDOA5qinNeDw1oCp7C3tlUgk0CYTlbjqAOZ5LcHC7HVSPjC5cIgh8FEv3UV3n0wa7N34m72NZVk+ROZLHlhiJ7JB5di66uytYQvXJ9W1wWfV+e1UY89SrsQpBOdrKX3fJePPvrI0SI4qiiboESv0Y3kg++WRGKzE7o4huTghlYTmiIT0H/OX9A83YdmmRSzfE52xBg==

Steps to reproduce

Click the button.

What is expected?

No error.

What is actually happening?

Error.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'el')

System Info

No response

Any additional comments?

It seems to be related to the use of reactive(). If I switch the example to use ref() everything works fine.

avatar
Mar 28th 2023

Will fix soon.