In my component, I have a prop users
props: ['users']
Then in my data I am assign users to my local users
data() {
return {
currentUsers: this.users,
}
}
So when parent controller changes the users object the this.users is changing but currentUsers has its initial value. Is this how it supposed to work? Isn't currentUsers reactive by its definition as a data var? Do I have to define a watch in order to update currentUsers?
Comments
Post a Comment