Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const fetchHorizontalSpecialProductsList=(virtinId)=> {
- return (dispatch) => {
- dispatch({
- type: Types.REQUEST_FETCH,
- });
- HomeApi().specialProducts({vitrinId:virtinId,rows:8,page:0,frontTypeList:["SPECIAL"]}).then((response) => {
- dispatch({
- type: Types.REQUEST_SUCCESS,
- payload: response,
- });
- //
- .then(probably here)
- //
- }).catch((response) => {
- dispatch({
- type: Types.REQUEST_FETCH_FAIL,
- payload: response,
- });
- });
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement