actionOrdersPage.js 383 B

123456789
  1. import { actionFeedCats, actionFeedClear, actionFeedOrders, actionPromiseClear } from "../reducers";
  2. export const actionOrdersPage =
  3. ({ orderBy = "_id", status = "0" } = {}) =>
  4. async (dispatch, getState) => {
  5. dispatch(actionFeedClear());
  6. dispatch(actionPromiseClear("feedOrdersAll"));
  7. dispatch(actionFeedOrders({ skip: 0, orderBy, status }));
  8. };