Open
Description
const ApplicationSource = {
withdrawApplication: {
remote (state, application) {
return $.ajax({url: 'somepath', method: 'GET'});
},
success: applicationActions.withdrawApplicationSuccess,
error: applicationActions.withdrawApplicationFailure,
}
}
Whenever /somepath returns a 200 it is handled by the success handler 'withdrawApplicationSuccess' but a non-200 (for ex 500 or 404), is not handled by error handler 'withdrawApplicationFailure'.
Note We are using jquery 1.11. So I am assuming the $.ajax returns a Promise.
Is there anything wrong with this?
Metadata
Metadata
Assignees
Labels
No labels