-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Vue version
3.4.29
Link to minimal reproduction
Steps to reproduce
declared an array with defineModel
macro, if you want to add a value to array with push()
method, it doesn't trigger the value of the array
What is expected?
click on the button should add a value to array and trigger the reactivity.
What is actually happening?
new value doesn't add to array when clicked on the button
System Info
No response
Any additional comments?
temporary we can use something like array = [...array]
after push new value to trigger the reactivity but i dont think it's such a good idea. this issue reminds me of the $vue.set
method that we have to use when pushing items to array in vue 2.
Metadata
Metadata
Assignees
Labels
No labels