Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My gist
// Omitted export stuff, this is just to pass the ideia of what i'm trying to accomplish
class MyAction {
async updateParticipants() {
const response = await axios.get("some/url/participants");
return response.data;
}
}
class MyStore {
constructor() {
this.bindActions(MyAction);
this.participants = [];
}
// This isn't being called when updateParticipants action finishes...
onUpdateParticipants(participants) {
this.participants = participants;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment