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
| import AppDispatcher from 'AppDispatcher'; | |
| import when from 'when'; | |
| function asyncDispatch(actionType, promise, actionObj = {}) { | |
| AppDispatcher.handleViewAction({ | |
| type: actionType.LOADING | |
| }); | |
| return promise.then(response => { | |
| AppDispatcher.handleViewAction({...{ |
NewerOlder