So I have a very simple component that has force:recordData. Since it is not a synchronous operation, initially simpleRecord attribute shows null in init handler.
In updateRec method, I can see the field values present in simpleRecord.
However In<aura:if>
block never gets re-evaluated (i.e. simpleRecord is always null) and i cannot see the button?
<force:recordData aura:id="recordLoader"
recordId="{!v.recordId}"
fields="Id, Name"
mode="VIEW"
targetRecord="{!v.record}"
targetFields="{!v.simpleRecord}"
targetError="{!v.recordError}"
recordUpdated = "{!v.updateRec}"
/>
<aura:if isTrue="{!not(empty(v.simpleRecord))}">
<lightning:button label="Simple Buttn" />
</aura:if>
Plz help me in solving this problem.