actionUserPageClear.js 275 B

12345678
  1. import { actionPromiseClear } from "../reducers";
  2. export const actionUserPageClear =
  3. ({ promiseName = "userById" } = {}) =>
  4. async (dispatch, getState) => {
  5. dispatch(actionPromiseClear(promiseName));
  6. dispatch(actionPromiseClear("uploadFile"));
  7. };