I need to rerender a component when an attribute value is changed. I tried to put the init handler code into a helper function and called it in valueChange event handler but it did not work. Please give me some suggestions.
<!--Handler-->
<aura:handler name="change" value="{!v.dfButtonId}" action="{!c.dfButtonIdChange}"/>
<!--js controller-->
doInit: function(component, event, helper){
//This code is working correctly
},
dfButtonIdChange:function(component, event, helper){
//I need to rerender the component here
}
Best Answer
The framework will detect any attribute changes automatically and rerender dirty values so you shouldn't need to manually track and rerender.