Even if I remove all the attributes except doInIt handler and remove the code from Js controller, still reloads twice when launched from related list New Button
Please check the following links. https://developer.salesforce.com/forums/?id=9060G000000IAM6QAO (actual issue) https://salesforce.stackexchange.com/questions/223806/application-event-fired-multiple-times-multiple-copies-of-components-in-memory
The below blog answers your question,
https://salesforce.stackexchange.com/questions/165821/doinit-method-is-being-called-twice
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks.
I am invoking the component from related list New button
Please check the following links.
https://developer.salesforce.com/forums/?id=9060G000000IAM6QAO (actual issue)
https://salesforce.stackexchange.com/questions/223806/application-event-fired-multiple-times-multiple-copies-of-components-in-memory
Hope this helps!
Thanks,
Sucharita