Is there a way to determine which specific component attributes updated, without the component having to manually compare each attribute to its old value? I.e. I don't want my component to internally store the old objects of every attribute . I'm trying to avoid doing something like the following:
didReceiveAttrs() {
if( this.propA != this.oldPropA){
// do something...
}
if( this.propB != this.oldPropB){
// do something...
}
}
Aucun commentaire:
Enregistrer un commentaire