#Wire #Apex #Methods With #Parameters In #Salesforce #LWC

preview_player
Показать описание
To read Salesforce data, Lightning web components use a reactive wire service. Use @wire in a component’s JavaScript class to specify an Apex method. You can @wire a property or a function to receive the data. To operate on the returned data, @wire a function.To use @wire to call an Apex method, annotate the Apex method with @AuraEnabled(cacheable=true). A client-side Lightning Data Service cache is checked before issuing the network call to invoke the Apex method on the server. To refresh stale data, call refreshApex(), because Lightning Data Service doesn’t manage data provisioned by Apex.

Chapters
00:00 Explanation
00:21 Lightning Web Component HTML
01:11 Lightning Web Component Controller
02:46 Apex Class
03:33 Demo of Example Lightning Web Component
03:56 Benefits of Wiring Apex Methods with Parameters
Рекомендации по теме