LWC Bootcamp Day 13 | Fetch API | JS Debug Tips
Вставка
- Опубліковано 17 жов 2024
- 𝐒𝐞𝐬𝐬𝐢𝐨𝐧 𝐓𝐫𝐚𝐜𝐤𝐞𝐫 - shorturl.at/iqGP2
This Video Covers
👉🏼Fetch API
👉🏼 JS Debug
API discussed in Video -
👉 API to get Random Users - reqres.in/api/...
👉 API to get CAT Images - api.thecatapi....
👉 API for Exchange Rate - rest.coinapi.i...
#fetchapi #debugtips #import #export #settimeout #setinterval #customevents #collections #map #salesforce #lightning #development #lwc #jsoverview #lighting #salesforcelighting #salesforcetraining #lwcbasics #lwcadvanced #salesforcedeveloper #developer #ankitjain #techjourneywithankit #studysalesforce #lwc #aura #lightningwebcomponent #ankitjain #lwcbootcamp #arrowfunction #callbackfunction
"Thank you so much Ankit, this tutorial was incredibly helpful! I've been struggling to grasp the intricacies of the Fetch API, but your explanation made it much clearer. Also, those JavaScript debugging tips were a game-changer for me. I never realized how powerful console.log() could be when used strategically. Thanks a ton for sharing your expertise!"
You're very welcome!
amazing session. Thank you Ankit🙏
Glad you liked it
Hi Ankit
In the second Integration I tried to set Time interval so that page gets refreshed at a particular time interval so that it continuously generate images. I am getting an exception:
Uncaught SyntaxError: missing ] after element list9 script.js:11:9note: [ opened at line 11, column 1
can you suggest what is the issue here?
I used below line of code to set interval
setInterval(randomCatImages(),1000);
Issue is resolved by using
I have wrapped callback fx using arrow fx:
setInterval(()=>randomCatImages(),1000);
Great
Hi Ankit Sir, your way of explanation is very clear. Could you please make videos on CPQ as well?
Yes, sure
Where in the code exactly should we put the 'debugger' keyword.?
In any function on any line which will be executed as part of flow.
Check LWC Debugging video on channel your doubt hopefully will be cleared
Sir, I think you have missed covering some array methods - some, every, reduce?
Will upload soon
can i cretae remote site are named credential for this?
Yes you can