When I am trying to change the value of an Api attribute in connected callback of my LWC, the value does not change. It retains the value coming from Parent. Please find example code below:
export default class myLWC extends LightningElement{
@api myApiVar={};//isNew is true in parent
connectedcallback{
Console.log(myApiVar.isNew);//true
myApiVar.isNew=false;
Console.log(myApiVar.isNew);//true
}
================================================= Please advice if I am missing anything here