Read Data with LDS Wire Adapters

preview_player
Показать описание
#1 Salesforce Training Tutorials

LDS wire adapters are another way to work with Salesforce data. Use a wire adapter to read Salesforce data (records) and metadata (layout details, fields on an object, and so on). To use them, decorate a property or function with @wire and specify the wire adapter.

LDS wire adapters check the LDS cache first, and request data from the server only as needed. Adapters react to change and refresh data accordingly. For example, when the parameter value changes, or other components modify data in the Lightning Data Service cache, an adapter provisions the new data to the wired property or function.

Let’s review an example that uses the getRecord wire adapter.

Promote Your Salesforce App on This Channel:

Channel Link with FULL Playlists:

Salesforce Administrator Certification FULL Playlist:
Рекомендации по теме