Questions tagged [lazy-loading]
Lazy loading is a design pattern commonly used to defer initialization of an object until the point at which it is needed.
10
questions
1
vote
0
answers
39
views
Implementing Lazy Loading with Lightning Dual Listbox
I need to implement lazy loading for a lightning dual listbox because I have more than 10k data to be put in the options and it is currently make the site hang/lag. I welcome anyone who have any other ...
1
vote
1
answer
72
views
Lazy loading LWC without datatable and loadMore
Let's say we have
<template>
<template if:false={isLoading}>
<div class="cxd-history__container" onscroll={handleScroll}>
<template for:each={historyList}...
0
votes
1
answer
4k
views
Spinner when apex is loading LWC
Hi I am new in programming and salesforce.
I want to add spinner like "https://www.sfdcpoint.com/salesforce/lightning-spinner-in-lwc-lightning-web-component/" or just gif when my apex class ...
0
votes
1
answer
586
views
Salesforce - Lightning Database with lazyload and Sorting
How can we use lightning data table lazy load functionality with sorting of columns?
As Lazy load only will bring certain no of records at a time then sorting actually is working on those set of ...
1
vote
0
answers
20
views
Is there any way to have a very lazy evaluation of Labels used in Salesforce Chatter messages?
I'm currently working for a company whose main language is German though they are an increasingly multilingual company.
I have a requirement that when some event happens, notifications should be sent ...
0
votes
1
answer
1k
views
Not able to call "loadmoredata" function when scrolled to the bottom in data table lwc salesforce [duplicate]
I have created a lightning web component in which i am using lightning data table. Now, i am try to implement infinite lazy loading but unable to call my loadmoredata function. here is my code ...
2
votes
1
answer
512
views
Is there any way to make an Apex method parameter lazy?
Let's say I want to call a method like:
doSomething(a.b.c.d.e.f());
I know that this might be an expensive operation and a, a.b, a.b.c, a.b.c.d, and a.b.c.d.e might all be null, however I would ...
2
votes
2
answers
2k
views
What is this technique called?
public static List<Holiday> holidays {
get {
if(holidays == null)
holidays=[Select h.StartTimeInMinutes, h.Name, h.ActivityDate From Holiday h];
...
1
vote
1
answer
342
views
Making the difference between null and not loaded fields
I have a scenario in which I need to know if a SObject has been loaded with some fields I am about to update. It has been loaded in another code layer, I just get it in input of my method. I am ...
10
votes
2
answers
6k
views
What are the best ways to achieve lazy load in Lightning components?
I have come across many discussions to improve the performance of Lightning components and everybody has their own approach and solution. What do you reckon is the best way to implement the concept of ...