I am trying to refresh the Standard UI of the Record Page on Click of button.
@wire(getRecord, { recordId: '$recordId', layoutTypes: ['Full'], modes: ['View'] })
wiredOpportunity;
@api
refreshOpportunityRecordUI() {
return refreshApex(this.wiredOpportunity);
}
I am using refreshOpportunityRecordUI()
on click of button, but it doesn't works always on click of that button. It works after few interval time, like 1st time you clicked and now if you click even multiple times, the UI will be not refreshed, but after few seconds around 30-40 it will work.
<lightning-button label="Refresh Contacts2"
onclick={refreshOpportunityRecordUI}></lightning-button>