NK
Size: a a a
NK
RL
RL
AM
RL
AM
AM
RL
RL
RL
AM
RL
RL
RL
NK
export const someAction = () => {
return (dispatch, getState) => {
return api.post('first.request').then(firstResponse => {
dispatch({
type: 'FIRST_RESPONSE_SUCCESS',
payload: firstResponse
});
api.post('second.request').then(secondResponse => {
dispatch({
type: 'SECOND_RESPONSE_SUCCESS',
payload: secondResponse
});
})
})
}
}AM
AM
RL
AM
RL