Last active
November 1, 2017 22:04
-
-
Save arcifius/b17c0378fbef50174f0190235074774f to your computer and use it in GitHub Desktop.
My gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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