Valid PDII Dumps shared by ExamDiscuss.com for Helping Passing PDII Exam! ExamDiscuss.com now offer the newest PDII exam dumps, the ExamDiscuss.com PDII exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PDII dumps with Test Engine here:
Access PDII Dumps Premium Version
(204 Q&As Dumps, 35%OFF Special Discount Code: freecram)
Recent Comments (The most recent comments are at the top.)
True , here is an example :
import { LightningElement, wire, track } from 'lwc';
import { refreshApex } from '@salesforce/apex';
import getRecords from '@salesforce/apex/YourController.getRecords';
export default class YourComponent extends LightningElement {
@track data;
wiredResult; // Store the wire result here
// Fetch data with wire
@wire(getRecords)
wiredRecords(result) {
this.wiredResult = result;
if (result.data) {
this.data = result.data;
} else if (result.error) {
// handle error
}
}
// After saving a new record
handleSave() {
// Code to save record...
// Refresh the data
refreshApex(this.wiredResult);
}
}