New answers tagged

1 vote

Spread Operator Usage in LwC

The spread operator is a shallow copy operation. That means that while the arrays are separate objects, they both refer to the same element in every index. Let's provide a very simple example that ...
user avatar
  • 429k
0 votes

Spread Operator Usage in LwC

Use this: var arrObj1 = JSON.parse(JSON.stringify(arrObj));
user avatar
  • 601
2 votes

Spread Operator Usage in LwC

This is answered on stackoverflow. As per mozilla documentation Don't use console.log(obj), use console.log(JSON.parse(JSON.stringify(obj))). This way you are sure you are seeing the value of obj at ...
user avatar
  • 1,048
0 votes

For loop with in another for loop in aura javascript causes performance issue how to overcome on this issue

By using Set above code can be optimized. Complexity will be reduced from 300*165 to 300+165 lines for checking, if filterdList element id matches with newList element id. var newList = response....
user avatar
  • 1,048
1 vote
Accepted

Converting native javascript code to aura component javascript

Aura doesn't support ES6 function generators, it only supports ES5 and ES6 Promises. Either import the function as a third-party library with ltng:require, or use a Lightning Web Component (LWC), ...
user avatar
  • 429k
1 vote
Accepted

Lightning Aura Component with external MailGo JS Library for mailto links

Per nbrown comment above, I was able to find a way to call the modal directly. mailgoDirectRender(link); Where link is your mailto: string. mailgoDirectRender('mailto:test@test.com?subject=Crew ...
user avatar

Top 50 recent answers are included