I just picked up a React/Flux app and I'm new to the technology stack. One of the things that's throwing me off is that just about every tutorial I view on this stack very clearly defines Dispatchers as a necessary component.
I'm wondering if the previous developer chose not to use them, or if the notation he used actually takes the place of the dispatcher.
Is the following block of code a valid replacement of Dispatcher components?
update(id, info, photo) {
return dispatch => (
update(id, info)
.then(res => this._uploadPhoto(res, photo))
.then(res => dispatch(res.data))
.catch(err => this.updateError(err))
);
}