Skip to main content
added 93 characters in body
Source Link

I think the problem is that you are reassigning the variable, and overwritting the actual tracked object.

You can both:

this.advisor.Name = 'Bossman'; //As fas as it is @tracked

Or: this.advisor = {...pAdv};

this.advisor = {...pAdv};

Or: this.advisor = Object.assign({},pAdv);

this.advisor = Object.assign({},pAdv);

For not tracked variable or reassignations you need to use {} syntax or Object.assign. If you don't the change will not be noticed by the framework.

Hope it helps

I think the problem is that you are reassigning the variable, and overwritting the actual tracked object.

You can both:

this.advisor.Name = 'Bossman';

Or: this.advisor = {...pAdv};

Or: this.advisor = Object.assign({},pAdv);

For not tracked variable or reassignations you need to use {} syntax or Object.assign.

Hope it helps

I think the problem is that you are reassigning the variable, and overwritting the actual tracked object.

You can both:

this.advisor.Name = 'Bossman'; //As fas as it is @tracked

Or:

this.advisor = {...pAdv};

Or:

this.advisor = Object.assign({},pAdv);

For not tracked variable or reassignations you need to use {} syntax or Object.assign. If you don't the change will not be noticed by the framework.

Hope it helps

Source Link

I think the problem is that you are reassigning the variable, and overwritting the actual tracked object.

You can both:

this.advisor.Name = 'Bossman';

Or: this.advisor = {...pAdv};

Or: this.advisor = Object.assign({},pAdv);

For not tracked variable or reassignations you need to use {} syntax or Object.assign.

Hope it helps