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? A. Add the @track decorator to the data variable. B. Create a new variable to store the result and annotate it with @track. C. Create a variable to store the result and call refreshApex(). D. Call refreshApex() on this.data. Â Suggested Answer: D Community Answer: C This question is in Certified Platform Developer II Exam For getting Salesforce Certified Platform Developer II Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer