<lightning-record-form> performance regression introduced in Spring 20
Last updated 2021-10-12 ·Reference W-7216040 ·Reported By 6 users
Summary
LWC component which has the compound address field from Accounts object, loads fine in winter 20 org (~400MS ) but in the spring 20 org takes time to load (~30 seconds).
If we use the same component in some other page, then that page freezes and the address fields do not load successfully.
Repro
.html:
======
<template>
<div class="slds-grid">
<lightning-record-form
object-api-name={objectApiName}
fields={fields}
columns="2"
density="comfy"
onload={formLoaded}
onsuccess={formSuccess}
mode="new"
></lightning-record-form>
</div>
</template>;
.js:
====
import { LightningElement, api, track, wire } from "lwc";
import { getObjectInfo } from "lightning/uiObjectInfoApi";
import { createRecord } from "lightning/uiRecordApi";
import { updateRecord } from "lightning/uiRecordApi";
import ENGAGE_ID from "@salesforce/schema/Engagement__c.Id";
import ENGAGE_NAME from "@salesforce/schema/Engagement__c.Name";
import ENGAGE_ACCOUNTING_STATUS from "@salesforce/schema/Engagement__c.Accounting_Status__c";
import ENGAGE_AFFILIATED from "@salesforce/schema/Engagement__c.Affiliated__c";
import ENGAGE_ACTIVE from "@salesforce/schema/Engagement__c.Active__c";
import COMP_ADDRESS from "@salesforce/schema/Account.BillingAddress";
import USERID from "@salesforce/user/Id";
export default class HlEngageSumAppBusinessAddressTest extends LightningElement {
@api objectApiName = "Account";
fields = [COMP_ADDRESS];
}
Observations:
=============
In Winter 20 org →
>>Go to one account record and click on "test22" button
Notice it takes 4 seconds to load.
In Spring 20 org →
>> Go to the account record and click on "test22" button
It is taking 36 seconds to load.
Workaround
Do not use compound field.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.