Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Vue reactive prop

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