Created
January 26, 2015 23:02
-
-
Save jhollingworth/506e01af2070918dc7a3 to your computer and use it in GitHub Desktop.
Action status
This file contains hidden or 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
var ActionStore = require('marty/stores/actionStore'); | |
var actionToken = ActionCreators.someAction(); | |
ActionStore.addChangeListener(function () { | |
var action = ActionStore.getAction(actionToken); | |
console.log(action.status, action.error) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment