Skip to Content
Learning Salesforce Lightning Application Development
book

Learning Salesforce Lightning Application Development

by Mohit Shrivatsava
July 2018
Beginner to intermediate
458 pages
9h 58m
English
Packt Publishing
Content preview from Learning Salesforce Lightning Application Development

Understanding re-rendering the life cycle of a component

Let's take a look at the following diagram, before we dive in deeper with an example:

Let's analyze the preceding behavior with an example component, as follows; we have added an input form element and a button to observe the re-rendering cycle:

<aura:application extends="force:slds">  <aura:handler name="init" value="{!this}" action="{!c.onInit}"/>    <aura:handler name="render" value="{!this}" action="{!c.onRender}"/>    <aura:attribute name="search" type="string"/>    <div aura:id="example">        <span> 1 </span>        <span> 2 </span>        <span> 3 </span>        <span> 4 </span>    </div>    <Lightning:input value="{!v.search}" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Application Development with Force.com

Mastering Application Development with Force.com

Kevin J. Poorman
Learning Salesforce Einstein

Learning Salesforce Einstein

Mohit Shrivatsava, Raghuver Parupalli

Publisher Resources

ISBN: 9781787124677Supplemental Content