Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
How can i request it multiple with redux-saga
// dispatch(cartsActions.deleteCartItem.request) - saga looks this request action
deleteSelectedCartItem(); 

// axios.post('/orders, .....)
ordersRequest.addOrderItem(selectedCartItems); 

I want to run these two when a button is clicked. So I put these together in the click event handler. DeleteSelectedCartItem works well normally. But the axios.post part doesn't work.

So I chekced the network tab.

enter image description here

The order is the part about the axios request, and the number is the request related to delete (if there are four items, send the deletion request number 4).

What's the problem? I'd appreciate it if you could help me.

+) deleteCartItemByIdSaga

export function* deleteCartItemByIdSaga({
  payload: { idToDeleteCartItem },
}: PayloadAction<DeleteCartItemRequestPayload>) {
  try {
    yield call(cartsRequest.deleteCartItemById, idToDeleteCartItem);
    yield put(cartsActions.deleteCartItemById.success({ deletedCartItemId: idToDeleteCartItem }));
  } catch (error) {
    if (error instanceof Error) {
      yield put(cartsActions.deleteCartItemById.failure({ error }));
    }
  }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!