Activity Forums Salesforce® Discussions What is disconnectedCallback()?

  • Nikita

    Member
    October 1, 2019 at 6:51 am

    Hi,

    The disconnectedCallback()lifecycle hook fires when a component is removed from the DOM.

  • Pooja

    Member
    February 13, 2020 at 12:48 pm

    The disconnectedCallback() lifecycle hook fires when a component is removed from the DOM(Data Object Model). It is just opposite of the connectedCallback().

  • Shweta

    Member
    February 13, 2020 at 2:46 pm

    disconnectedCallback() : When the element is removed from a document and this hook flows from parent to child.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos