Activity Forums Salesforce® Discussions What is SLDS in Salesforce Lightning? What is the use of this? Reply To: What is SLDS in Salesforce Lightning? What is the use of this?

  • Parul

    September 19, 2018 at 5:09 pm



    Salesforce introduced Lightning Data Service in Winter 17 as a pilot program. Use Lightning Data Service to load, create, edit, or delete a record in your component without requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you.

    It’s built on highly efficient local storage that’s shared across all components that use it. Records loaded in Lightning Data Service are cached and shared across components. Components accessing the same record see significant performance improvements, because a record is loaded only once, no matter how many components are using it. Shared records also improve user interface consistency. When one component updates a record, the other components using it are notified, and in most cases, refresh automatically.

    Advantages of Lightning Data Service

    No need to write any Apex class
    No need to write SOQL
    Field level security and record sharing is inbuilt
    CRUD operation supported
    Shared cache is used by all standard and custom components
    Auto notification to all components
    Supports offline in Salesforce 1