Lightning Life Cycle starts with creating the component definition, its entire parent hierarchy, and then creates the facets within those components. The framework also creates any component dependencies on the server, including definitions for attributes, interfaces, controllers, and actions.
A component is instantiated, rendered, and rerendered during its lifecycle. A component is rerendered only when there’s a programmatic or value change that would require a rerender, such as when a browser event triggers an action that updates its data.
A basic understanding of the sequence of steps that takes place when a Lightning Component communicates with a client and a server will help a great deal before we dive deep into how to build a Lightning Component.
Please use the below link to understand. https://www.oreilly.com/library/view/learning-salesforce-lightning/9781787124677/7af0b7c4-82f4-44e0-9fc3-ac2c362fdf35.xhtml
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards, Deepali Kulshrestha www.kdeepali.com
Lightning Life Cycle starts with creating the component definition, its entire parent hierarchy, and then creates the facets within those components. The framework also creates any component dependencies on the server, including definitions for attributes, interfaces, controllers, and actions.
For more details with example reffer this : Lightning Life Cycle (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_lifecycle.htm)
Thank You,
http://www.nubeselite.com/
Development | Training | Consulting
Please mark this as solution if your problem is resolved.
A component is instantiated, rendered, and rerendered during its lifecycle. A component is rerendered only when there’s a programmatic or value change that would require a rerender, such as when a browser event triggers an action that updates its data.
For more details use below links:
1.https://albasfdc.com/2018/04/23/lightning-components-lifecycle/.
2.https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_lifecycle.htm?search_text=lifecycle.
3.https://www.oreilly.com/library/view/learning-salesforce-lightning/9781787124677/7af0b7c4-82f4-44e0-9fc3-ac2c362fdf35.xhtml.
4.https://sfdcbrewery.github.io/SalesforceLightningComponentLifecycle/.
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
Greetings to you!
Lightning Component lifecycle
A basic understanding of the sequence of steps that takes place when a Lightning Component communicates with a client and a server will help a great deal
before we dive deep into how to build a Lightning Component.
Please use the below link to understand.
https://www.oreilly.com/library/view/learning-salesforce-lightning/9781787124677/7af0b7c4-82f4-44e0-9fc3-ac2c362fdf35.xhtml
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com