Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. export const fetchHorizontalSpecialProductsList=(virtinId)=> {
  2. return (dispatch) => {
  3. dispatch({
  4. type: Types.REQUEST_FETCH,
  5. });
  6. HomeApi().specialProducts({vitrinId:virtinId,rows:8,page:0,frontTypeList:["SPECIAL"]}).then((response) => {
  7. dispatch({
  8. type: Types.REQUEST_SUCCESS,
  9. payload: response,
  10. });
  11. //
  12. .then(probably here)
  13. //
  14. }).catch((response) => {
  15. dispatch({
  16. type: Types.REQUEST_FETCH_FAIL,
  17. payload: response,
  18. });
  19. });
  20. };
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement