Skip to content

Instantly share code, notes, and snippets.

@arcifius
Last active November 1, 2017 22:04
Show Gist options
  • Select an option

  • Save arcifius/b17c0378fbef50174f0190235074774f to your computer and use it in GitHub Desktop.

Select an option

Save arcifius/b17c0378fbef50174f0190235074774f to your computer and use it in GitHub Desktop.
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