My action:
const someAction = () => {
return {
[RSAA]: {
types: [
SOME_REQUEST,
SOME_SUCCESS,
SOME_FAILURE,
],
endpoint: ...,
method: 'POST',
}
};
};
I call it in the following way:
this.props.someAction();
Everything works correctly, I am able to handle data in the reducer. The question is, can I somehow pick up the result of the function when it is called?
I mean something like that:
this.props.someAction().then( //success ).catch( //error );