Activity Forums Salesforce® Discussions What is @Wire service?

  • Nikita

    Member
    September 30, 2019 at 10:47 am

    Hi,

    To read Salesforce data, Lightning web components use a reactive wire service. When the wire service provisions data, the component rerenders. Components use @wire in their JavaScript class to specify a wire adaptor or an Apex method.

    Wire Service is reactive. So, it works asynchronously. But the page renders based on the values retrieved.

    You cannot chain Wire Service methods. Use dynamic binding instead.

    LWC is only for Salesforce applications.

  • Deepak

    Member
    October 3, 2019 at 2:09 pm

    Components use @wire in their JavaScript class to specify a wire adaptor or an Apex method. To read Salesforce data, Lightning web components use a reactive wire service. When the wire service provisions data, the component rerenders. Wire Service is reactive. So, it works asynchronously. But the page renders based on the values retrieved. You cannot chain Wire Service methods. Use dynamic binding instead.LWC is only for Salesforce applications.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos