Activity › Forums › Salesforce® Discussions › What is rerender in Salesforce Lightning Component?
-
What is rerender in Salesforce Lightning Component?
Posted by Prachi on August 16, 2018 at 12:55 PMWhat is rerender in Salesforce Lightning Component?
Pooja replied 6 years, 3 months ago 4 Members · 3 Replies -
3 Replies
-
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.
- [adinserter block='9']
-
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.
} -
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.