Salesforce
PDII · Question #324
PDII Question #324: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #324. The question stem and answer options stay visible for context.
Question
A developer is creating a Lightning web component that displays a list of records in a lightning- datatable. After saving a new record to the database, the list is not updating. What should the developer change in the code above for this to happen?
Exhibit
Options
- AAdd the @track decorator to the data variable.
- BCreate a new variable to store the result and annotate it with @track.
- CCreate a variable to store the result and call refreshApex().
- DCall refreshApex() on this.data.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
