actionCategoriesPage.js 398 B

12345678910
  1. import { actionFeedCats, actionFeedClear, actionPromiseClear } from "../reducers";
  2. export const actionCategoriesPage =
  3. ({ orderBy = "_id" } = {}) =>
  4. async (dispatch, getState) => {
  5. dispatch(actionFeedClear());
  6. dispatch(actionPromiseClear("feedCatAll"));
  7. dispatch(actionPromiseClear("categoryUpsert"));
  8. dispatch(actionFeedCats({ skip: 0, orderBy }));
  9. };