Frequently Asked LWC Interview Questions & Answers

  Рет қаралды 26,288

Tech Journey With Ankit

Tech Journey With Ankit

Күн бұрын

Пікірлер: 41
@Himanshukumar-pw4ys
@Himanshukumar-pw4ys 8 ай бұрын
key difference b/w track and api is : 1. track is used to observe the changes in properties object or array whereas api is used to make the property or method in a js file to be public so that the parent component can pass the data to the child component. Can we perform DML inside the wire or not? No, we cannot perform DML inside the wire as it is used only to retrieve the data from the salesforce database.
@haribabuk5162
@haribabuk5162 8 ай бұрын
@track decorator is used in some properties only in lwc like array and object,if we want to change any properties in the array or object to make that properties reactive we can use @track decorator for an array or object. @Api decorator -@Api decorator is used to make property public , generally we used api properties in child component to receive the data from the parent component. we cannot perform DML operation inside wire, if we want to perform DML in imperative method for that we need to remove @AuraEnableCacheable = true for an apex method
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 ай бұрын
Correct
@saisagar921
@saisagar921 7 ай бұрын
Track is used with properties to track changes in Arrays or Objects Wire is Used with properties or functions to read data from apex No,we cant perform DML Inside wire Method Thank you so much sir for your videos and clear explanation
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 ай бұрын
Glad you found this helpful
@ashwinkubde5232
@ashwinkubde5232 8 ай бұрын
==> No, we cannot perform DML operations in wire since wire services are read-only services but we have workaround to perform DML we have to remove catchable=true and use it imperative ==> @track is internal to the component. @api expose a component's property or method to the parent component, so that parent can access it.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Correct
@PoojaSinghal-cl6wj
@PoojaSinghal-cl6wj 8 ай бұрын
1. Track decorator - used with properties to track changes in arrays or objects Wire decorator - used with properties or functions to read data from apex 2. we can’t perform DML inside wire
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Correct
@kumarvenkat739
@kumarvenkat739 7 ай бұрын
Thank you so much Sir, I cannot finish a video without saying a Big THANK YOU to you
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 ай бұрын
Glad you liked it
@sunilbihani7581
@sunilbihani7581 8 ай бұрын
Thank you so much @Ankit Sir. Its great.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Glad you liked it
@kundlikyewale1464
@kundlikyewale1464 7 ай бұрын
1. Track decorator - Used with properties to track changes in arrays or objects if any change occurs in track properties it will render the component Wire decorator - Used with properties or functions to read data from the apex where @AuraEnabled required 2. We can’t perform DML inside wire because which internally perform read operation to access the data
@TechJourneyWithAnkit
@TechJourneyWithAnkit 7 ай бұрын
Correct
@sonalijadhav9446
@sonalijadhav9446 3 ай бұрын
Get the contacts related to account and show it in a data table and display one New button to create new contact record and associate that to the Account and after creating it should display in data table without page refresh LWC interview scenario
@naj7213
@naj7213 4 ай бұрын
can we call wire method using LWC life cycle hooks? if yes, in which LWC life cycle hook?
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 ай бұрын
Wire method is a seperate process. If you have to invoke it in life cycle change the parameter of wire in connected callback
@haribabuk5162
@haribabuk5162 8 ай бұрын
Thanks for giving these type of knowledge
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Glad you liked it
@shrutiggundewar
@shrutiggundewar 8 ай бұрын
Questions which were asked during interview- 1. There is multicurrency field created, how can we display the value of this field in lwc with currency 2. Create a login page on experience site with two fields - username and password. Upon click of submit button authenticate the credentials and accordingly show next page or error message.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Will consider this in upcoming videos
@m.balaji1325
@m.balaji1325 2 ай бұрын
Thankyou sir very informative
@TechJourneyWithAnkit
@TechJourneyWithAnkit 2 ай бұрын
Most welcome
@raghavendrasharma2466
@raghavendrasharma2466 8 ай бұрын
One of my interview, interviewer ask me if we make call-out from lwc, and response come bit late then how can we resolve this issue that response come fast.
@luciferbhoi
@luciferbhoi 8 ай бұрын
What would be the answer
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
I am not sure. There is something wrong in the question
@NaveenKumar-sd6mx
@NaveenKumar-sd6mx 8 ай бұрын
To make the response from the Lwc system faster, you can: 1. Make sure the most critical calls are handled first. 2. Simplify the steps needed to handle calls to reduce delays. 3. Ensure requests are sent through the quickest and most efficient paths.
@anilkumarsahu8546
@anilkumarsahu8546 6 ай бұрын
excellent!!!
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 ай бұрын
Thank you! Cheers!
@TheBeastBananas
@TheBeastBananas 8 ай бұрын
Thanks. Waiting for more
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
Coming soon
@ashishgupta5209
@ashishgupta5209 5 ай бұрын
If the interviewer asked us to write trigger or Apex code where we should write like in developer console or in notepad
@TechJourneyWithAnkit
@TechJourneyWithAnkit 5 ай бұрын
If you are good with syntax, go for Developer console or vs code else notepad will be fine for interviewer. Interviewer will be more interested in approach
@luciferbhoi
@luciferbhoi 8 ай бұрын
thank you so much, I was looking for this. Subscribed to the channel and looking forward to upcoming content. Also, when can we expect the next part
@TechJourneyWithAnkit
@TechJourneyWithAnkit 8 ай бұрын
As soon as possible
@kasivisweswar577
@kasivisweswar577 4 ай бұрын
API- Annotate it with @api This is used to make the property public. To pass data from parent component to child component we need to use @api in child component to make it public. So that data can pass from parent to child. Track- annotate it with @track Use to make the property private and it also tracks the changes in object and array. Wire- @wire Reactive wire service is used to read the salesforce data from Apex class. We cannot perform DML operation in wire.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 4 ай бұрын
Inherited sharing class of directly calls runs in Sharing mode, however other by default runs in system mode
@naveenadapa1325
@naveenadapa1325 8 ай бұрын
Please Upload LWC Interview Questions
@nv1242
@nv1242 7 ай бұрын
Like and subscribe done.
@TechJourneyWithAnkit
@TechJourneyWithAnkit 6 ай бұрын
Thanks
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
TOP 5 Angular Interview Questions and Answers (for experienced, 2020)
21:50
Frequently Asked LWC Questions | #salesforce #forcegalaxy #lwc
14:05
Infosys Interview Questions for Salesforce Developer | 4+ YOE | May 2024
19:38
Slesforce in 5 minutes
Рет қаралды 11 М.