Last active
June 28, 2016 16:50
-
-
Save viniciusdacal/1a31f2a14342773a3ba74e27b8e7e13c to your computer and use it in GitHub Desktop.
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
| dispatch({type: CALL_API_REQUEST}); | |
| http.get('http://api.myapp.com/service') | |
| .then( | |
| (result) => dispatch({type: CALL_API_SUCCESS, body: result}), | |
| (error) => dispatch({type: CALL_API_FAILURE, error: error}), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment