How to handle asynchronous queuing in dva

    * deleteDetails({payload}, {call, put}) {
      const result = yield call(deleteDetails, {payload});
      if (result.code !== 200) {
        throw result.msg;
      } else {
        Toast.success(result.msg, 1);
        yield put(routerRedux.goBack())
      }
    },

execute the timing prompt first, and then return to the previous page after completing the prompt. How to deal with asynchronous queuing


is achieved through call a Promise :

   * deleteDetails({payload}, {call, put}) {
      const result = yield call(deleteDetails, {payload});
      if (result.code !== 200) {
        throw result.msg;
      } else {
          yield call(() => {
            return new Promise((resolve) => {
              Toast.success(result.msg, 1);
              setTimeout(() => resolve(), 1000)
            });
          });
          yield put(routerRedux.goBack())
      }
    }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e7ebb8-9fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e7ebb8-9fe.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?