Activity Forums Salesforce® Discussions What is rerender in Salesforce Lightning Component?

  • Anurag

    Member
    August 16, 2018 at 1:20 pm

    Hi Prachi,

    Rerender function will be called when a component’s value changes due to user action like a button click or some other event like component/application event. Rerender function updates component upon rerendering of the component.

  • Parul

    Member
    September 28, 2018 at 5:42 pm

    rerender():
    It allows the component to update themselves, when other component updates since they were last rendered. It doesn’t return any value. It automatically called when data is updated in the component. Call superRerender() to chain rerendering to the components in body attribute.
    Example:

    rerender : function(component, helper) {
    this.superRerender();
    // Write your custom code here.
    }

  • Pooja

    Member
    March 2, 2020 at 2:57 pm

    It allows the component to update themselves, when other component updates since they were last rendered. It doesn’t return any value. It automatically called when data is updated in the component. Call superRerender() to chain rerendering to the components in body attribute.Rerender function will be called when a component’s value changes due to user action like a button click or some other event like component/application event. Rerender function updates component upon rerendering of the component.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos