Open bmblb opened 3 years ago
Potential workaround: clone data, provided by Salesforce, to a simple array of objects without side effects, using effective forEach, and then provide that data to the grid.
const data = [];
this.array.forEach(x => data.push(cloneRecord(x)))
new Grid({
data : data
})
There are suggestions to replace data loading loop with a for..of
. In case problem is only in iterating the incoming array, that could do the trick. Need to decide if for..of
performance loss is tolerable, forEach
loss is surely not.
Ideally this would be an LWC specific override.
UPD: Salesforce cannot fix the for
loop:
Salesforce responded that they have been able to replicate the performance issue on their end but due to the fundamental design of their data proxying feature they are not going to do anything to fix it
Reported here: https://www.bryntum.com/forum/viewtopic.php?f=51&t=15916&p=79421