Skip to content

defineModel ref not reactive #10600

Discussion options

You must be logged in to vote

The ref is reactive, but not deep-reactive. And the prop value you provided is a plain, nonreactive array.

It works like a normal prop in that regard - if you pass something non-reactive down through a prop, changes will not trigger anything.

Changing the array will not trigger anything, as you did not rlassign a new value to the model ref

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ant32t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants