I have been trying to refactor Some existing React-Reflux code to ES-6 syntax,
I have 3 Stores for people, Projects and events. They Do basically the same thing but call different apis to fetch results.
so I tried to do the following :
class ResultStore extends Reflux.Store {
constructor(resultsAPI){
super();
//initializations
}
}
class PeopleResultStore extends ResultStore {
constructor(){
super('peopleBySkill');
}
}
But this started throwing error "Super expression must either be null or a function, not undefined" at random places (mostly at Export statements of totally unrelated stores) in the code base. I'm using version 0.14.3 of React and 0.3.0 of Reflux