Closed Nicolab closed 8 years ago
Hello,
I have upgraded alt and since cannot extends properly a class. alt use the methode of the parent instead of the concret class.
alt
// parent (abstract) class BaseActions { constructor() { this.generateActions( 'fetchDone', 'fetchFail' ); } fetch() { console.log('BaseActions.fetch()'); } } // child (concret) class MyActions extends BaseActions { constructor() { super(); } fetch() { console.log('MyActions.fetch()'); } } export default alt.createActions(MyActions);
In a React component:
myActions.fetch(); // print: BaseActions.fetch()
I suspect getPrototypeChain here
getPrototypeChain
Is this still a problem in 0.18.4?
yeap
Hello,
I have upgraded
alt
and since cannot extends properly a class.alt
use the methode of the parent instead of the concret class.In a React component:
I suspect
getPrototypeChain
here