Got pretty basic task of loading Lead info via LDS. Whenever this page loads, LDS doesn't do anything - no error, no warning.
<aura:component implements="lightning:isUrlAddressable">
<aura:attribute name="lead" type="Lead"/>
<aura:attribute name="pageReference" type="Object"/>
<aura:attribute name="recordError" type="String"/>
<force:recordData aura:id="recordLoader"
fields="['Id','CreatedDate','Address']"
recordId="{!v.pageReference.state.lead}"
targetFields="{!v.lead}"
targetError="{!v.recordError}"
recordUpdated="{!c.handleRecordUpdated}"/>
<lightning:card title="Some title" footer="{!v.recordError}">
<aura:set attribute="actions">
<lightning:button label="Save Progress"/>
</aura:set>
{!v.lead.Address.Street}
</lightning:card>
</aura:component>
Controller:
handleRecordUpdated: function(component, event, helper) {
var eventParams = event.getParams();
if(eventParams.changeType === "LOADED") {
console.log("Record is loaded successfully.");
} else if(eventParams.changeType === "CHANGED") {
console.warn("record is changed");
} else if(eventParams.changeType === "REMOVED") {
console.warn("record is deleted");
} else if(eventParams.changeType === "ERROR") {
console.error("Record load err");
}
},