Activity Forums Salesforce® Discussions What is the difference between constructor and connectedcallback in LWC?

  • Anjali

    Member
    December 29, 2020 at 9:17 am

    constructor() is called when the element is created.
    connectedCallback() is called when (after) the element is attached to the DOM.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos