actionUsersSearchPage.js 373 B

123456789
  1. import { actionFeedClear, actionFeedUsersFind, actionPromiseClear } from "../reducers";
  2. export const actionUsersSearchPage =
  3. ({ orderBy = "_id", text = "" } = {}) =>
  4. async (dispatch, getState) => {
  5. dispatch(actionFeedClear());
  6. dispatch(actionPromiseClear("feedUsersFind"));
  7. dispatch(actionFeedUsersFind({ skip: 0, orderBy, text }));
  8. };