traversing nth level in the lightning tree

i am trying to create account contact hierarchy in the lightning:tree and identifying nth level and creating tree like nested tree structure. parent account contact1 contact2 child account1 contact3 contact4 childaccount2 contact5 contact6 it is creating tree on same levels Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the … Read more

What does the Lightning component method component.isValid() do?

I have read in the Lightning Component Developer guide that it is recommended to use the component.isValid() check any time you are referencing a component in asynchronous code such as in the helper controller when handling the response from the server-side controller. I have not been able to find in the documentation exactly what this function is doing. Could someone explain what this isValid() function is doing?