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