All,
This may be a basic question, but I've Googled around it and haven't found an explicit piece of documentation to back it up.
I have a Lightning component with a required attribute which is a list of Custom Object
<aura:attribute name="example" type="Custom_Object__c[]" required="true" default="[]"/>
This component has an init handler which takes the list of Custom objects and effectively turns them into a wrapper class (so I can add a tickbox to each record in the list).
I use this Component [CHILD] in the body of another component [PARENT] (and that component passes in the list of SObjects)
Weirdly, the init on the CHILD component doesn't seem to know about the passed in list of SObjects. It thinks it has an empty list, so it has nothing to iterate through. This surprised me as I had assumed that all of the passed in attributes would be available to the init method.
Is there documentation anywhere which explains the order in which the init handler and the passed in attributes, etc are initialised/kicked-off?
With thanks, Andy