Activity Forums Salesforce® Discussions What is the difference between connectedcallback() and renderedcallback() in LWC

  • What is the difference between connectedcallback() and renderedcallback() in LWC

    Posted by Shweta on December 21, 2020 at 4:15 pm

    What is the difference between connectedcallback() and renderedcallback() in LWC?

    Aditya replied 4 years ago 2 Members · 1 Reply
  • 1 Reply
  • Aditya

    Member
    December 24, 2020 at 7:33 am

    connectedCallback() in Lightning Web Component is part of the lifecycle hook which is a callback method triggered at a specific phase of a component instance’s lifecycle.

    • Don’t update a wire adapter configuration object property in `renderedCallback()`
    • Don’t update a public property or field in `renderedCallback()`

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos