import getContactList from
'@salesforce/apex/ContactController.getContactList';
...
async handleLoad() {
try {
this.contacts = await getContactList();
}
}
import getContactList from
'@salesforce/apex/ContactController.getContactList';
...
async handleLoad() {
try {
console.time('getContactList');
this.contacts = await getContactList();
console.timeEnd('getContactList');
}
}
import getContactList from
'@salesforce/apex/ContactController.getContactList';
...
async handleLoad() {
try {
console.time('getContactList');
console.count('getContactList calls');
this.contacts = await getContactList();
console.timeEnd('getContactList');
}
}
import getContactList from
'@salesforce/apex/ContactController.getContactList';
...
async handleLoad() {
try {
console.time('getContactList');
console.count('getContactList calls');
console.trace();
this.contacts = await getContactList();
console.timeEnd('getContactList');
}
}
import getContactList from
'@salesforce/apex/ContactController.getContactList';
...
async handleLoad() {
try {
console.time('getContactList');
...
this.contacts = await getContactList();
console.table(this.contacts);
console.timeEnd('getContactList');
}
}
async handleLoad() {
try {
...
this.contacts = await getContactList();
console.assert(
this.contacts.length > 0,
'No contacts received'
);
}
}
console.log('Cheer if you see this');
console.log(
'%c Cheer if you see me!',
'color: black;
font-weight: bold;
background : lightblue;
font-size: 2em;
padding: 1em 1em 1em 120px;
background-image: url(data:image/...'
);
async handleLoad() {
console.groupCollapsed('Apex Imperative Method');
try {
console.time('getContactList');
...
this.contacts = await getContactList();
console.timeEnd('getContactList');
} ...
console.groupEnd()
console.table(this.contacts);
}