function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nicolas VuillamyNicolas Vuillamy 

component.getConcreteComponent().getDef().getHelper() alternative ?

Hi,
In my lightning app I use a lot component inheritance.

Basically, i have a 'framework' component that contains most of the behaviours, and the only specific behaviours are defined on inheriting component. 
Since LockerServer,  the command component.getConcreteComponent().getDef().getHelper() doesn't work anymore, coz getDef() is not accessible. 
What is the workaround to do that ?

Note: my code follows the principle of this example : https://developer.salesforce.com/blogs/developer-relations/2015/03/salesforce-lightning-components-by-example-component-extension.html

Many thanks & best regards

 
Lucas Ennouchi InCloudLucas Ennouchi InCloud
I am still trying to figure out a way of getting the helper of sub components. Did you find a solution for this Nicolas ? 
Nicolas VuillamyNicolas Vuillamy
Hi Lucas ,

I found a workaround, i'm not sure it's the best one, and i'd really prefer SalesForce to provide a native way in Lightning to manage it ..... but it works with LockerService :)

Please check my answer on stackexchange: http://salesforce.stackexchange.com/questions/118270/lightning-lockerservice-and-component-inheritance