You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use defineModel in a child component to define some array data (call it model)
alter model by pushing a new array item to it
What is expected?
Template to re-render with new item in the array
What is actually happening?
template does not re-render
System Info
No response
Any additional comments?
Replacing the entire array works as expected but pushing does not. Maybe this is intended (not deep)?
If so, perhaps the docs should include a note about this.
Thanks!
The text was updated successfully, but these errors were encountered:
Vue version
3.4.38
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-9pbycg?file=src%2FApp.vue,src%2Fcomponents%2FMyArrayComponent.vue,src%2Fcomponents%2FMyStringComponent.vue&terminal=dev
Steps to reproduce
model
)model
by pushing a new array item to itWhat is expected?
Template to re-render with new item in the array
What is actually happening?
template does not re-render
System Info
No response
Any additional comments?
Replacing the entire array works as expected but pushing does not. Maybe this is intended (not deep)?
If so, perhaps the docs should include a note about this.
Thanks!
The text was updated successfully, but these errors were encountered: