import alt from 'altInstance';
import ActivityActions from '../actions/Activity.actions';
class ActivtyStore {
constructor () {
this.bindActions(ActivityActions);
}
}
export default alt.createStore(ActivtyStore);
With that i'm getting a ReferenceError: ActivityStore is not defined from alt Object.createStoreFromClass. If I add any method, the error no longer occurs.
import alt from 'altInstance';
import ActivityActions from '../actions/Activity.actions';
class ActivtyStore {
constructor () {
this.bindActions(ActivityActions);
}
onUpdateActivityQueue (activity) {
this.setState({activity});
}
}
export default alt.createStore(ActivtyStore);
Also if I pass the class into the alt.createStore method, it does not have the issue.
I have a simple store ...
With that i'm getting a ReferenceError: ActivityStore is not defined from alt Object.createStoreFromClass. If I add any method, the error no longer occurs.
Also if I pass the class into the alt.createStore method, it does not have the issue.